EnumTEnumToString(TEnum, EnumFormattingOptions, String) Method
Returns the
String representation of the given
enum value specified in the
value parameter.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public static string ToString(
TEnum value,
EnumFormattingOptions format,
string? separator = ", "
)
Public Shared Function ToString (
value As TEnum,
format As EnumFormattingOptions,
Optional separator As String = ", "
) As String
public:
static String^ ToString(
TEnum value,
EnumFormattingOptions format,
String^ separator = L", "
)
static member ToString :
value : 'TEnum *
format : EnumFormattingOptions *
?separator : string
(* Defaults:
let _separator = defaultArg separator ", "
*)
-> string
- value TEnum
- A TEnum value that has to be converted to String.
- format EnumFormattingOptions
- The formatting options.
- separator String (Optional)
- Separator in case of flags formatting. If or is empty, then comma-space (, ) separator is used. This parameter is optional.
Default value: , .
StringThe string representation of
value.