We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Searches for the public field with the specified enumeration value.
Namespace: CodeJam.ReflectionAssembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
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()
Type: FieldInfoAn object representing the public field with the specified enumeration value, if found; otherwise, null.
ReflectionEnumHelper ClassCodeJam.Reflection Namespace