C# Класс EnumEditorHtmlHelper, code

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DropDownListFor ( HtmlHelper, htmlHelper, Expression, expression ) : MvcHtmlString,

Creates the DropDown List (HTML Select Element) from LINQ Expression where the expression returns an Enum type.

Приватные методы

Метод Описание
createSelectList ( Type, enumType, string selectedItem ) : IEnumerable

Creates the select list.

Описание методов

DropDownListFor() публичный статический Метод

Creates the DropDown List (HTML Select Element) from LINQ Expression where the expression returns an Enum type.
public static DropDownListFor ( HtmlHelper, htmlHelper, Expression, expression ) : MvcHtmlString,
htmlHelper HtmlHelper, The HTML helper.
expression Expression, The expression.
Результат MvcHtmlString,