-
Notifications
You must be signed in to change notification settings - Fork 34
T_CodeJam_EnumHelper
andrewvk edited this page Nov 5, 2016
·
6 revisions
Extension methods for Enum types
System.Object
CodeJam.EnumHelper
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
public static class EnumHelperVB
<ExtensionAttribute>
Public NotInheritable Class EnumHelperF#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type EnumHelper = class endThe EnumHelper type exposes the following members.
| Name | Description | |
|---|---|---|
![]()
|
AreFlagsDefined(TEnum) | Determines whether all bits of the flags combination are defined. |
![]()
|
ClearFlag(TEnum) | Clears the flag. |
![]()
|
GetFlagsMask(TEnum) | Returns a combination of all flags declared in the enum. |
![]()
|
GetName(TEnum) | Returns the name of the enum value. |
![]()
|
GetNames(TEnum) | Retrieves an array of the names of the constants in a specified enumeration. |
![]()
|
GetNameValues(TEnum) | Returns a dictionary containing the enum names and their values. |
![]()
|
GetValues(TEnum) | Retrieves an array of the values of the constants in a specified enumeration. |
![]()
|
IsAnyFlagSet(TEnum) | Determines whether any bit from specified flag is set. |
![]()
|
IsAnyFlagUnset(TEnum) | Determines whether any bit from specified flag is not set. |
![]()
|
IsDefined(TEnum) | Determines whether the specified value is defined. |
![]()
|
IsFlagsEnum(TEnum) | Determines whether the enum has flags modifier. |
![]()
|
IsFlagSet(TEnum) | Determines whether the specified flag is set. |
![]()
|
IsFlagUnset(TEnum) | Determines whether the specified flag is not set. |
![]()
|
Parse(TEnum) | Parse the enum value. |
![]()
|
SetFlag(TEnum)(TEnum, TEnum) | Sets the flag. |
![]()
|
SetFlag(TEnum)(TEnum, TEnum, Boolean) | Sets or clears the flag depending on enabled value. |
![]()
|
TryParse(TEnum)(String, Boolean) | Try to parse the enum value. |
![]()
|
TryParse(TEnum)(String, TEnum) | Try to parse the enum value. |
![]()
|
TryParse(TEnum)(String, Boolean, TEnum) | Try to parse the enum value. |
