EnumTEnumToString(TEnum, EnumFormattingOptions, String) Method

Returns the String representation of the given enum value specified in the value parameter.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0
C#
public static string ToString(
	TEnum value,
	EnumFormattingOptions format,
	string? separator = ", "
)

Parameters

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: , .

Return Value

String
The string representation of value.

Exceptions

See Also