[This is preliminary documentation and is subject to change.]
Checks if param is an enum.
Namespace:
CSInfrastructure.CodeContracts
Assembly:
CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax public static Type IsEnum(
Type param,
string paramName
)
Parameters
- param
- Type: SystemType
The type to check - paramName
- Type: SystemString
The name of the parameter to check
Return Value
Type:
TypeThe value from the parameter
Exceptions Exception | Condition |
---|
InvalidEnumArgumentException | Thrown when param is not an enum |
See Also