Type.IsSubclssOf and Type.IsAssignableFrom
On the Type class there are two very useful methods which allows you to determine the inheritance relationship of two arbitrary types at runtime – IsSubclassOf method and IsAssignableFrom method. IsSubclassOf The MSDN documentation for the IsSubclassOf method states: Determines whether the class represented by the current Type derives from the class represented by the …