C# Get Name of Derived Type from Inside base Class
<p>I am troubleshooting a problem in handling a mouse event in a base class. Since breakpoints don't really work well for troubleshooting mouse events, I want to add some debug output in the event handler.  However, it's important for me to include the name of the actual derived class in the debug info as the event handling code in the base class is shared by a large number of derived classes and only certain ones exhibit the problem. </p>

<p>I tried using this.GetType().Name but this simply returns the type of the base class.  I can, of course start modifying the classes and, say, pass the derived class type to the base class constructor where it can store it but this is a lot of changes for what is obviously only a temporary need.  Is there a simple way to get the type of the derived class from within the base class? </p>
