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.GetL ogger(typeof(Fi nder).ToString( ));
others use:
ILog log = LogManager.GetL ogger(this.GetT ype().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.GetL ogger(typeof(Fi nder).ToString( ));
others use:
ILog log = LogManager.GetL ogger(this.GetT ype().ToString( ));
Is there any difference?
Thanks,
Peter
Comment