Determines whether an instance of the specified type is a subclass of the current type.
public static bool IsSubclassOf(this Type type, Type c)
| parameter | description |
|---|---|
| type | The type. |
| c | The type to compare. |
true if the Type represented by the c parameter and the current Type represent classes, and the class represented by the current Type derives from the class represented by c; otherwise, false. This method also returns false if c and the current Type represent the same class.