Method InheritsFrom
InheritsFrom(Type, Type)
Checks if this type inherits from this baseType anywhere up the inheritence order.
Declaration
public static bool InheritsFrom(this Type type, Type baseType)
Parameters
| Type | Name | Description | 
|---|---|---|
| Type | type | "this" type  | 
    
| Type | baseType | baseType to check inheritance for  | 
    
Returns
| Type | Description | 
|---|---|
| bool | true if there is inheritance, false otherwise.  |