-
Notifications
You must be signed in to change notification settings - Fork 36
M_CodeJam_Reflection_ReflectionEnumHelper_GetField__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
Searches for the public field with the specified enumeration value.
Namespace: CodeJam.Reflection
Assembly: 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()
- value
- Type: TEnum
An enumeration value.
- TEnum
- An enumeration type.
Type: FieldInfo
An object representing the public field with the specified enumeration value, if found; otherwise, null.