Determines whether the class represented by the current
Type derives from the class represented by the specified
Type.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual bool IsSubclassOf(
Type c
)
Parameters
- c
- Type: SystemType
The type to compare with the current type.
Return Value
Type:
Booleantrue 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.
Exceptions See Also