Skip to content

M_CodeJam_EnumHelper_GetDescription__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

EnumHelper.GetDescription(TEnum) Method

Returns description of enum value.

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

Syntax

C#

public static string GetDescription<TEnum>(
	TEnum value
)
where TEnum : struct, new()

VB

Public Shared Function GetDescription(Of TEnum As {Structure, New}) ( 
	value As TEnum
) As String

F#

static member GetDescription : 
        value : 'TEnum -> string  when 'TEnum : struct, new()

Parameters

 

value
Type: TEnum
Enum value.

Type Parameters

 

TEnum
Enum type

Return Value

Type: String
[Missing documentation for "M:CodeJam.EnumHelper.GetDescription1(0)"]

Remarks

Returns description of enum value specified by DisplayAttribute, or null if no attribute specified.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally