Method AsString
AsString<T>(T)
Gets a string representation of the specified enumeration value.
Declaration
public static string AsString<T>(this T value) where T : unmanaged, Enum
Parameters
Type |
Name |
Description |
T |
value |
The enumeration value.
|
Returns
Type Parameters
AsString<T>(T, SplitFlagsOptions)
Gets a string representation of the specified enumeration value using the specified options to customize how flags are split.
Declaration
public static string AsString<T>(this T value, SplitFlagsOptions flagsOptions) where T : unmanaged, Enum
Parameters
Type |
Name |
Description |
T |
value |
The enumeration value.
|
SplitFlagsOptions |
flagsOptions |
Options to customize the behavior of the conversion if the value is a flags enumeration. Ignored if the value is not a flags
enumeration.
|
Returns
Type Parameters