Share via


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 (
         Type c
)

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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

Type Class
Type Members
System Namespace