Method IsAssignableFromOrSubclassOf
IsAssignableFromOrSubclassOf(Type, Type)
Tests if class type IsAssignableFrom or IsSubclassOf another type.
Declaration
public static bool IsAssignableFromOrSubclassOf(this Type checkType, Type baseType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | checkType | type wanting to check. |
| Type | baseType | type wanting to check against. |
Returns
| Type | Description |
|---|---|
| bool | True if IsAssignableFrom or IsSubclassOf. |