Click or drag to resize
TypeIsSubclassOf Method
Determines whether the class represented by the current Type derives from the class represented by the specified Type.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual bool IsSubclassOf(
	Type c
)

Parameters

c
Type: SystemType
The type to compare with the current type.

Return Value

Type: Boolean
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.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe c parameter is null.
See Also