-
Notifications
You must be signed in to change notification settings - Fork 36
T_CodeJam_EnumHelper
andrewvk edited this page Jun 23, 2016
·
6 revisions
Extension methods for Enum types
System.Object
CodeJam.EnumHelper
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static class EnumHelper
VB
<ExtensionAttribute>
Public NotInheritable Class EnumHelper
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type EnumHelper = class end
The 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. |
![]() ![]() |
IsDefined(TEnum) | Determines whether the specified value is defined |
![]() ![]() |
IsFlagMatch(TEnum) | Determines whether any bit from specified flag is set. |
![]() ![]() |
IsFlagNotMatch(TEnum) | Determines whether any bit from specified flag is not set. |
![]() ![]() |
IsFlagNotSet(TEnum) | Determines whether the specified flag is not set. |
![]() ![]() |
IsFlagsEnum(TEnum) | Determines whether the enum has flags modifier. |
![]() ![]() |
IsFlagSet(TEnum) | Determines whether the specified flag is set. |
![]() ![]() |
Parse(TEnum) | Parse the enum value. |
![]() ![]() |
SetFlag(TEnum) | Sets the flag. |
![]() ![]() |
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. |