Skip to content

M_CodeJam_Reflection_ReflectionEnumHelper_GetField__1

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

ReflectionEnumHelper.GetField(TEnum) Method

Searches for the public field with the specified enumeration value.

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

Syntax

C#

public static FieldInfo GetField<TEnum>(
	TEnum value
)
where TEnum : struct, new()

VB

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

F#

static member GetField : 
        value : 'TEnum -> FieldInfo  when 'TEnum : struct, new()

Parameters

 

value
Type: TEnum
An enumeration value.

Type Parameters

 

TEnum
An enumeration type.

Return Value

Type: FieldInfo
An object representing the public field with the specified enumeration value, if found; otherwise, null.

See Also

Reference

ReflectionEnumHelper Class
CodeJam.Reflection Namespace

Clone this wiki locally