EnumHelpers
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetAllEnumFlags | 1 | Get array value from the input flaged enum value. |
| GetAllEnumFlags | 2 | Get array value from the input flaged enum enumValue. |
| Enums | 1 | Enumerate all of the enum values in the specific Enum type data. |
| Description | 1 | Get the description data from a enum type value, if the target have no DescriptionAttribute attribute data then function will return the string value from the ToString() functio… |
| Enums | 1 | |
| FlagCombinationDescription | 1 |
03 Members
``0)Get array value from the input flaged enum value.
| Name | Description |
|---|---|
T |
| Name | Type | Description |
|---|---|---|
value | ``0 | - |
Enum, Type)Get array value from the input flaged enum enumValue.
Enumerate all of the enum values in the specific Enum type data. (只允许枚举类型,其他的都返回空集合)
| Name | Description |
|---|---|
T | 泛型类型约束只允许枚举类型,其他的都返回空集合 |
Enum, String)Get the description data from a enum type value, if the target have no DescriptionAttribute attribute data then function will return the string value from the ToString() function.
this extension function has an internal cache table for get the description text of a given enum value
| Name | Type | Description |
|---|---|---|
value | Enum | - |
deli | String | a delimiter string for join multiple flag enumeration value theirs enum string |
this function always returns a non-null string value:
for thoese enum member which it has been tagged with DescriptionAttribute, the description data string will returns from this function; otherwise the string value from the enum member its toString() function will be returned.
T)Int64, Type, String)