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
if you want to check if a class is subclass of another you can use is.
if (variable is superclass){ //do stuff }
Docs: https://msdn.microsoft.com/en-us/library/scekt9xw.aspx