Click or drag to resize
EnumTEnumGetName Method
Retrieves the name of the constant in the specified enumeration that has the specified value.

Namespace: Bobs
Assembly: Bobs.Utilities (in Bobs.Utilities.dll) Version: 0.1.0-dev001
Syntax
public static string GetName(
	TEnum value
)

Parameters

value
Type: TEnum
The value of a particular enumerated constant in terms of its underlying type.

Return Value

Type: String
A string containing the name of the enumerated constant in TEnum whose value is value; or null if no such constant is found.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentExceptionvalue is neither of type TEnum nor does it have the same underlying type as TEnum.
See Also