GetEnumSelectList<TEnum>() creates an IEnumerable<SelectListItem> for every value in an enumeration. Use the result with the Select Tag Helper’s asp-items attribute instead of writing the enum-to-option mapping yourself. section 18.2.4 section 18.6
Populate a select from an enum
<select asp-for="Input.SelectedValue" asp-items="Html.GetEnumSelectList<TEnum>()"></select> The bound property receives the selected enum value, while the helper supplies the available option items. section 18.2.4 section 18.6
The generated items can support the same select-list patterns as other SelectListItem collections, including drop-downs, list boxes, and multiple-selection controls when the bound property is an IEnumerable. section 18.2.4
