Skip to content

M_CodeJam_EnumHelper_GetName__1

andrewvk edited this page Jun 23, 2016 · 5 revisions

EnumHelper.GetName(TEnum) Method

Returns the name of the enum value.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static string GetName<TEnum>(
	TEnum value
)
where TEnum : struct, new(), IComparable, IFormattable, IConvertible

VB

Public Shared Function GetName(Of TEnum As {Structure, New, IComparable, IFormattable, IConvertible}) ( 
	value As TEnum
) As String

F#

static member GetName : 
        value : 'TEnum -> string  when 'TEnum : struct, new() and IComparable and IFormattable and IConvertible

Parameters

 

value
Type: TEnum
The enum value.

Type Parameters

 

TEnum
The type of the enum.

Return Value

Type: String
The name of the enum value, or null if there is no value defined.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally