In C#, how does one obtain a reference to the base class of a given class?
For example, suppose you have a certain class, MyClass, and you want to obtain a
MyClass
The Type.BaseType property is what you're looking for.
Type superClass = typeof(MyClass).BaseType;