16 references to SelectListItem
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultDisplayTemplates.cs (3)
66
new
SelectListItem
(Resources.Common_TriState_NotSet, string.Empty, !value.HasValue),
67
new
SelectListItem
(Resources.Common_TriState_True, "true", (value == true)),
68
new
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)
43
new
SelectListItem
("Zero", "0", true) { Group = GroupOne },
44
new
SelectListItem
("One", "1", false) { Group = GroupTwo },
45
new
SelectListItem
("Two", "2", true) { Group = GroupOne },
46
new
SelectListItem
("Three", "3", false) { Group = null },
50
new
SelectListItem
("Zero", "0", true) { Group = GroupOne },
51
new
SelectListItem
("One", "1", true) { Group = GroupOne },
52
new
SelectListItem
("Two", "2", false) { Group = GroupOne },
53
new
SelectListItem
("Three", "3", false) { Group = GroupOne },
57
new
SelectListItem
("Zero", "0", true) { Group = DisabledGroup },
58
new
SelectListItem
("One", "1", true) { Group = DisabledGroup },
59
new
SelectListItem
("Two", "2", true) { Group = DisabledGroup },
60
new
SelectListItem
("Three", "3", true) { Group = DisabledGroup },