How to find the child class name from base class?

Xaqron picture Xaqron · Jan 23, 2011 · Viewed 50.3k times · Source

At run-time, inside base class, how to find the current child class name ?

Answer

tvanfosson picture tvanfosson · Jan 23, 2011

Get the type of the current object, then its name.

this.GetType().Name