Skip to content

M_CodeJam_EnumHelper_GetValues__1

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

EnumHelper.GetValues(TEnum) Method

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

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

Syntax

C#

public static TEnum[] GetValues<TEnum>()
where TEnum : struct, new()

VB

Public Shared Function GetValues(Of TEnum As {Structure, New}) As TEnum()

F#

static member GetValues : unit -> 'TEnum[]  when 'TEnum : struct, new()

Type Parameters

 

TEnum
The type of the enum.

Return Value

Type: TEnum[]
An array that contains the values of the constants in enumType.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally