Is it possible to refer to the name of the class that a piece of code is in?
For example when adding logging statements with log4net we initialise the log like this in each class...
private static readonly ILog Log = LogManager.GetLogger(typeof(EmploymentCorrectionUpdate));
Where 'EmploymentCorrectionUpdate' is the name of the class containing the code.
It would be a lot easier if the class name could be retrieved generically.
Please Note: This is a static field.