C# Class Common.Helpers.EnumHelper

Datei anzeigen Open project: rabbal/Mvc5

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