Note that you cannot compile: "System.Type" does not contain a definition for "BaseType", and no extension method "BaseType" that accepts the first argument of type "System.Type" was found (you are missing using the directive or link to assembly?) "
It is strange because the MSDN documentation clearly states that this property must be present: http://msdn.microsoft.com/en-us/library/system.type.basetype(v=vs.110).aspx
source share