KGy SOFT

EnumExtensions Class

KGy SOFT Core Libraries Help
Contains extension methods for the Enum type.
Inheritance Hierarchy

SystemObject
  KGySoft.CoreLibrariesEnumExtensions

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public static class EnumExtensions

The EnumExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAllFlagsDefined(Enum)
Gets whether every single bit value in flags are defined in the enum type of flags, or when flags is zero, it is checked whether zero is defined in the enum type of flags.
Public methodStatic memberAllFlagsDefinedTEnum(TEnum)
Gets whether every single bit value in flags are defined in the TEnum type, or, when flags is zero, it is checked whether zero is defined in TEnum.
Public methodStatic memberGetFlagsTEnum
Public methodStatic memberGetNameTEnum
Retrieves the name of the constant in the specified enumeration that has the specified value.
Public methodStatic memberHasFlagTEnum
Gets whether the bits that are set in the flags parameter are set in the specified value.
Public methodStatic memberIsDefinedTEnum
Gets whether value is defined in TEnum.
Public methodStatic memberIsSingleFlag(Enum)
Gets whether only a single bit is set in value.
Public methodStatic memberIsSingleFlagTEnum(TEnum)
Gets whether only a single bit is set in value. It is not checked, whether this flag is defined in TEnum.
Public methodStatic memberToStringTEnum(TEnum, String)
Returns the String representation of the given enum value.
Public methodStatic memberToStringTEnum(TEnum, EnumFormattingOptions, String)
Returns the String representation of the given enum value specified in the value parameter.
Top
See Also

Reference