-
Notifications
You must be signed in to change notification settings - Fork 35
Methods_T_CodeJam_EnumHelper
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
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. | |
GetDescription(TEnum) | Returns description of enum value. | |
GetDisplayName(TEnum) | Returns description of enum value. | |
GetEnumValue(TEnum) | Gets metadata about enum value. | |
GetEnumValues(Type) | Returns enum values collection that contains information about enum type and its values. | |
GetEnumValues(TEnum)() | Gets enum values collection that contains information about enum type and its values. | |
GetField(TEnum) | Gets field info of enum value. | |
GetFlagsMask(TEnum) | Returns a combination of all flags declared in the enum. | |
GetName(TEnum) | Returns 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)(String) | Determines whether the string representation of value is defined. | |
IsDefined(TEnum)(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. |