Skip to content

M_CodeJam_Reflection_ReflectionEnumHelper_GetFields__1

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

ReflectionEnumHelper.GetFields(TEnum) Method

Returns enum fields for enum type.

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

Syntax

C#

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

VB

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

F#

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

Type Parameters

 

TEnum
The type of the enum.

Return Value

Type: FieldInfo[]
List of enum fields.

See Also

Reference

ReflectionEnumHelper Class
GetFields Overload
CodeJam.Reflection Namespace

Clone this wiki locally