Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.TagHelpers/ReflectionHelper.cs
/// <summary>
///     Get the <see cref="FieldInfo" /> definition for an enum value object.
/// </summary>
/// <param name="obj">The enum value object.</param>
/// <returns>The corresponding <see cref="FieldInfo" /> definition.</returns>
Get the  definition for an enum value object.
Get the definition for an enum value object .
public static FieldInfo GetMember(this Enum obj)
		{
			var enumType = obj.GetType();
			var name = Enum.GetName(enumType, obj);
			return enumType.GetField(name);
		}
public static FieldInfo GetMember ( this Enum obj ) { var enumType = obj . GetType ( ) ; var name = Enum . GetName ( enumType , obj ) ; return enumType . GetField ( name ) ; }
Get the  definition for an enum value object.
Get the definition for an enum value object .
The corresponding  definition.
The corresponding definition .
Enum
this
obj
The enum value object.
The enum value object .