C# 클래스 Sakura.AspNetCore.Mvc.TagHelpers.EnumHelper

파일 보기 프로젝트 열기: sgjsakura/AspNetCore

공개 메소드들

메소드 설명
GetMember ( this obj ) : FieldInfo

Get the FieldInfo definition for an enum value object.

GetTextForMember ( this memberInfo, EnumOptionTextSource textSource ) : string

Get the display text of an enum item from the specified text source.

GetValueForMember ( this memberInfo, EnumOptionValueSource valueSource ) : string

Get the value text of an enum item from the specified value source.

메소드 상세

GetMember() 공개 정적인 메소드

Get the FieldInfo definition for an enum value object.
public static GetMember ( this obj ) : FieldInfo
obj this The enum value object.
리턴 System.Reflection.FieldInfo

GetTextForMember() 공개 정적인 메소드

Get the display text of an enum item from the specified text source.
The value of is not a valid enum item.
public static GetTextForMember ( this memberInfo, EnumOptionTextSource textSource ) : string
memberInfo this The object represented as an enum item.
textSource EnumOptionTextSource The text source for the enum item.
리턴 string

GetValueForMember() 공개 정적인 메소드

Get the value text of an enum item from the specified value source.
The value of is not a valid enum item.
public static GetValueForMember ( this memberInfo, EnumOptionValueSource valueSource ) : string
memberInfo this The object represented as an enum item.
valueSource EnumOptionValueSource The value source for the enum item.
리턴 string