P
Peter Kirk
Hi
is there a difference between "this.GetType()" and typeof(MyClass)?
The only reason I ask is that we are using log4net in a project, and we give
the Loggers names based on the class name.
For example, some people use:
ILog log = LogManager.GetLogger(typeof(Finder).ToString());
others use:
ILog log = LogManager.GetLogger(this.GetType().ToString());
Is there any difference?
Thanks,
Peter
is there a difference between "this.GetType()" and typeof(MyClass)?
The only reason I ask is that we are using log4net in a project, and we give
the Loggers names based on the class name.
For example, some people use:
ILog log = LogManager.GetLogger(typeof(Finder).ToString());
others use:
ILog log = LogManager.GetLogger(this.GetType().ToString());
Is there any difference?
Thanks,
Peter