TypeExtensions.DerivesFrom Method
DerivesFrom(INamedType, INamedType, DerivedTypesOptions)
Determines if a type derives from another one, given as an INamedType.
Declaration
public static bool DerivesFrom(this INamedType left, INamedType right, DerivedTypesOptions options)
Parameters
Type | Name | Description |
---|---|---|
INamedType | left | The child type. |
INamedType | right | The base type. It cannot be a generic type instance. |
DerivedTypesOptions | options | Determine with inheritance relationships should be considered. |
Returns
Type | Description |
---|---|
System.Boolean |
DerivesFrom(INamedType, Type, DerivedTypesOptions)
Determines if a type derives from another one, given as a System.Type.
Declaration
public static bool DerivesFrom(this INamedType left, Type right, DerivedTypesOptions options)
Parameters
Type | Name | Description |
---|---|---|
INamedType | left | The child type. |
System.Type | right | The base type. It cannot be a generic type instance. |
DerivedTypesOptions | options | Determine with inheritance relationships should be considered. |
Returns
Type | Description |
---|---|
System.Boolean |