GuardIsAssignableToTAssigner Method |
[This is preliminary documentation and is subject to change.]
Checks if type inherits from TAssigner
Namespace:
CSInfrastructure.CodeContracts
Assembly:
CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax public static Type IsAssignableTo<TAssigner>(
Type type,
string paramName
)
Parameters
- type
- Type: SystemType
The type from which TAssigner should inherit - paramName
- Type: SystemString
The name of the parameter being checked
Type Parameters
- TAssigner
- The type to check
Return Value
Type:
TypeThe type being checked
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when type does not inherit from TAssigner |
See Also