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

Generate the item list for a "select" element with all items defined in an enum type.
상속: Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
파일 보기 프로젝트 열기: sgjsakura/AspNetCore

Private Properties

프로퍼티 타입 설명

보호된 메소드들

메소드 설명
GenerateListForEnumType ( ) : IEnumerable

Generate a list of SelectListItem for a specified enum type.

GetEnumType ( ) : Type

When derived, return the actual enum type for generating the list.

GetItemForMember ( MemberInfo memberInfo ) : SelectListItem

Generate a SelectListItem for a specified MemberInfo.

GetTextForMember ( MemberInfo memberInfo ) : string

Get the text of the option associated with the specified enum item.

GetValueForMember ( MemberInfo memberInfo ) : string

Get the value of the option associated with the specified enum item.

메소드 상세

GenerateListForEnumType() 보호된 메소드

Generate a list of SelectListItem for a specified enum type.
protected GenerateListForEnumType ( ) : IEnumerable
리턴 IEnumerable

GetEnumType() 보호된 추상적인 메소드

When derived, return the actual enum type for generating the list.
protected abstract GetEnumType ( ) : Type
리턴 System.Type

GetItemForMember() 보호된 메소드

Generate a SelectListItem for a specified MemberInfo.
protected GetItemForMember ( MemberInfo memberInfo ) : SelectListItem
memberInfo System.Reflection.MemberInfo The object represents as the enum item.
리턴 SelectListItem

GetTextForMember() 보호된 메소드

Get the text of the option associated with the specified enum item.
protected GetTextForMember ( MemberInfo memberInfo ) : string
memberInfo System.Reflection.MemberInfo The object represents as the enum item.
리턴 string

GetValueForMember() 보호된 메소드

Get the value of the option associated with the specified enum item.
protected GetValueForMember ( MemberInfo memberInfo ) : string
memberInfo System.Reflection.MemberInfo The object represents as the enum item.
리턴 string