16 references to SelectListItem
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultDisplayTemplates.cs (3)
66new SelectListItem(Resources.Common_TriState_NotSet, string.Empty, !value.HasValue), 67new SelectListItem(Resources.Common_TriState_True, "true", (value == true)), 68new SelectListItem(Resources.Common_TriState_False, "false", (value == false)),
Rendering\SelectListItem.cs (1)
50: this(text, value, selected)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
Rendering\HtmlHelperSelectTest.cs (12)
43new SelectListItem("Zero", "0", true) { Group = GroupOne }, 44new SelectListItem("One", "1", false) { Group = GroupTwo }, 45new SelectListItem("Two", "2", true) { Group = GroupOne }, 46new SelectListItem("Three", "3", false) { Group = null }, 50new SelectListItem("Zero", "0", true) { Group = GroupOne }, 51new SelectListItem("One", "1", true) { Group = GroupOne }, 52new SelectListItem("Two", "2", false) { Group = GroupOne }, 53new SelectListItem("Three", "3", false) { Group = GroupOne }, 57new SelectListItem("Zero", "0", true) { Group = DisabledGroup }, 58new SelectListItem("One", "1", true) { Group = DisabledGroup }, 59new SelectListItem("Two", "2", true) { Group = DisabledGroup }, 60new SelectListItem("Three", "3", true) { Group = DisabledGroup },