EnumTEnumGetName(TEnum) Method

Retrieves the name of the constant in the specified enumeration that has the specified value.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public static string? GetName(
	TEnum value
)

Parameters

value  TEnum
The enum value whose name is required.

Return Value

String
A string containing the name of the enumerated value, or if no such constant is found.

See Also