Skip to content

M_CodeJam_EnumHelper_GetNames__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

EnumHelper.GetNames(TEnum) Method

Retrieves an array of the names of the constants in a specified enumeration.

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

Syntax

C#

public static string[] GetNames<TEnum>(
	bool ignoreCase = false
)
where TEnum : struct, new()

VB

Public Shared Function GetNames(Of TEnum As {Structure, New}) ( 
	Optional ignoreCase As Boolean = false
) As String()

F#

static member GetNames : 
        ?ignoreCase : bool 
(* Defaults:
        let _ignoreCase = defaultArg ignoreCase false
*)
-> string[]  when 'TEnum : struct, new()

Parameters

 

ignoreCase (Optional)
Type: System.Boolean
If set to true the case of the name will be ignored.

Type Parameters

 

TEnum
The type of the enum.

Return Value

Type: String[]
A string array of the names of the constants in enumType.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally