Click or drag to resize

EnumExtensions Class

[This is preliminary documentation and is subject to change.]

Defines extensions for enums
Inheritance Hierarchy
SystemObject
  CSInfrastructure.ExtensionsEnumExtensions

Namespace:  CSInfrastructure.Extensions
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static class EnumExtensions

The EnumExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberToIntTEnum
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
Public methodStatic memberToIntDefaultNullTEnum
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.
Top
See Also