Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-preview.3
Syntax
public static string ToString( TEnum value, EnumFormattingOptions format, string? separator = ", " )
Parameters
- value
- Type: TEnum
A TEnum value that has to be converted to String. - format
- Type: KGySoft.CoreLibrariesEnumFormattingOptions
The formatting options. - separator (Optional)
- Type: SystemString
Separator in case of flags formatting. If or is empty, then comma-space (, ) separator is used. This parameter is optional.
Default value: , .
Return Value
Type: StringThe string representation of value.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Invalid format. |
See Also