Type.IsSubclassOf Method
Determines whether the current type derives from the specified type.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual bool IsSubclassOf (
Typec
)
Parameters
- c
The type you want to compare with the current type.
Return Value
true if the type represented by the c parameter and the current type both 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 both represent the same class.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.