Method IsInstance
IsInstance<T1, T2>()
Check if one type is an instance of another type.
Declaration
public static bool IsInstance<T1, T2>()
Returns
Type | Description |
---|---|
Boolean | Returns true if T2 is a base type of T1. |
Type Parameters
Name | Description |
---|---|
T1 | Expected base type. |
T2 | Expected child type. |