When is obj.GetType().IsInstanceOfType(typeof(MyClass)) true?
I'm looking at this piece of code written by someone else, and I'm wondering when it would evaluate to true. Basically, it is saying someType is an instance of someOtherType. Does it even make sense? So far, I've tried: derivedClass.GetType().IsInstanceOfType(typeof(BaseClass)) baseClass.GetType().IsInstanceOfType(typeof(DerivedClass)) myClass.GetType().IsInstanceOfType(typeof(MyClass)) And all of them evaluate to false. Any help is appreciated. Each of those 3 lines will return true only if the object involved ( derivedClass , baseClass and myClass respectively) is an instance of object , or