Method IsSameOrSubclassOf
IsSameOrSubclassOf(Type, Type)
Declaration
public static bool IsSameOrSubclassOf(this Type type, Type otherType)
Parameters
Type | Name | Description |
---|---|---|
Type | type | This Type instance. |
Type | otherType |
The Type instance to check for equivalence to this type instance or
whether it is a subclass thereof.
|
Returns
Type | Description |
---|---|
Boolean |
true , if otherType is equal to or a subclass of type ,
otherwise false .
|