EnumExtensions Class |
[This is preliminary documentation and is subject to change.]
Namespace: CSInfrastructure.Extensions
public static class EnumExtensions
The EnumExtensions type exposes the following members.
Name | Description | |
---|---|---|
ToIntTEnum |
Converts an enum value to its integer equivalent.
If the enum is nullable and the value is NULL, the integer value of defaultValue will be returned
| |
ToIntDefaultNullTEnum |
Converts an enum value to an integer.
If value is NULL, then we stick with NULL.
If value is equal to defaultValue, then we return NULL too.
|