Class HtmlOptionItemExtensions
Contains additional methods to work with HtmlOptionItem.
public static class HtmlOptionItemExtensions
- Inheritance
-
objectHtmlOptionItemExtensions
Methods
ToSelectListItems(IEnumerable<HtmlOptionItem>)
Maps an enumeration of HtmlOptionItem to enumeration of Microsoft.AspNetCore.Mvc.Rendering.SelectListItem.
public static IEnumerable<SelectListItem> ToSelectListItems(this IEnumerable<HtmlOptionItem> listItems)
Parameters
listItems
IEnumerable<HtmlOptionItem>
Returns
- IEnumerable<SelectListItem>