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