C# Class MVC5.Common.Helpers.EnumHelper

显示文件 Open project: rabbal/AspNetMVCNTierTemp

Public Methods

Method Description
GetEnumDescription ( Type type, string value ) : string
GetItems ( this enumType, int selectedValue ) : IEnumerable

Private Methods

Method Description
GetName ( Type enumType, string name ) : string

Method Details

GetEnumDescription() public static method

public static GetEnumDescription ( Type type, string value ) : string
type System.Type
value string
return string

GetItems() public static method

public static GetItems ( this enumType, int selectedValue ) : IEnumerable
enumType this
selectedValue int
return IEnumerable