EnumHelper Class |
Namespace: Enkoni.Framework
The EnumHelper type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | SetFlagT | Sets the specified flag in the enum value. |
![]() ![]() | ToggleFlagT | Toggles the specified flag in the enum value. |
![]() ![]() | ToString(Enum) | Returns a string value representing the specified enum value. If the enum value has the LocalizedDescriptionAttribute
applied, its parameters are used to generate the string value. If those parameters do not result in a valid string value or the attribute is
not applied, the enum value is tested for the DescriptionAttribute. If that attribute is applied, the
Description field is used as the string value. If the DescriptionAttribute is not applied or does not result in a valid string value, the enum value is tested for the EnumMemberAttribute. If that attribute is applied, the Value field is used as the string value. If none of the attributes are applied or result in a valid string value, the default ToString method is used. |
![]() ![]() | ToString(Enum, CultureInfo) | Returns a string value representing the specified enum value. If the enum value has the LocalizedDescriptionAttribute
applied, its parameters are used to generate the string value. If those parameters do not result in a valid string value or the attribute is
not applied, the enum value is tested for the DescriptionAttribute. If that attribute is applied, the
Description field is used as the string value. If the DescriptionAttribute is not applied or does not result in a valid string value, the enum value is tested for the EnumMemberAttribute. If that attribute is applied, the Value field is used as the string value. If none of the attributes are applied or result in a valid string value, the default ToString method is used. |
![]() ![]() | ToString(Enum, ResourceManager) | Returns a string value representing the specified enum value. If the enum value has the LocalizedDescriptionAttribute
applied, its parameters are used to generate the string value. If those parameters do not result in a valid string value or the attribute is
not applied, the enum value is tested for the DescriptionAttribute. If that attribute is applied, the
Description field is used as the string value. If the DescriptionAttribute is not applied or does not result in a valid string value, the enum value is tested for the EnumMemberAttribute. If that attribute is applied, the Value field is used as the string value. If none of the attributes are applied or result in a valid string value, the default ToString method is used. |
![]() ![]() | ToString(Enum, ResourceManager, CultureInfo) | Returns a string value representing the specified enum value. If the enum value has the LocalizedDescriptionAttribute
applied, its parameters are used to generate the string value. If those parameters do not result in a valid string value or the attribute is
not applied, the enum value is tested for the DescriptionAttribute. If that attribute is applied, the
Description field is used as the string value. If the DescriptionAttribute is not applied or does not result in a valid string value, the enum value is tested for the EnumMemberAttribute. If that attribute is applied, the Value field is used as the string value. If none of the attributes are applied or result in a valid string value, the default ToString method is used. |
![]() ![]() | UnsetFlagT | Unsets the specified flag in the enum value. |