EnumTEnumToString(TEnum, 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: 9.0.0-preview.1
C#
public static string ToString(
	TEnum value,
	string? separator
)

Parameters

value  TEnum
A TEnum value that has to be converted to String.
separator  String
Separator in case of flags formatting. If or is empty, then comma-space (, ) separator is used.

Return Value

String
The string representation of value.

See Also