Skip to content

M_CodeJam_Reflection_ReflectionEnumHelper_GetField__1

andrewvk edited this page Jun 23, 2016 · 5 revisions

ReflectionEnumHelper.GetField(T) Method

Searches for the public field with the specified enumeration value.

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

Syntax

C#

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

VB

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

F#

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

Parameters

 

value
Type: T
An enumeration value.

Type Parameters

 

T
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