Click or drag to resize

GuardIsEnum Method

[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
C#
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: Type
The value from the parameter
Exceptions
ExceptionCondition
InvalidEnumArgumentExceptionThrown when param is not an enum
See Also