Skip to content

M_CodeJam_EnumHelper_GetNameValues__1

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

EnumHelper.GetNameValues(TEnum) Method

Returns a dictionary containing the enum names and their values.

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

Syntax

C#

public static IReadOnlyDictionary<string, TEnum> GetNameValues<TEnum>(
	bool ignoreCase = false
)
where TEnum : struct, new()

VB

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

F#

static member GetNameValues : 
        ?ignoreCase : bool 
(* Defaults:
        let _ignoreCase = defaultArg ignoreCase false
*)
-> IReadOnlyDictionary<string, 'TEnum>  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: IReadOnlyDictionary(String, TEnum)
Returns a dictionary containing the enum names and their values.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally