54 references to SelectListItem
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
355var factorOptions = userFactors.Select(purpose => new SelectListItem { Text = purpose, Value = purpose }).ToList();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
SelectTagHelperTest.cs (1)
95var arrayItems = new[] { new SelectListItem() };
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DefaultHtmlGenerator.cs (1)
1581new SelectListItem()
HtmlHelper.cs (1)
1385var selectListItem = new SelectListItem
Rendering\MultiSelectList.cs (2)
164var newListItem = new SelectListItem 189var newListItem = new SelectListItem
Rendering\SelectListItem.cs (1)
24: this()
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (47)
Rendering\HtmlHelperSelectTest.cs (47)
64new SelectListItem { Text = SelectSources.ModelStateEntry.ToString() }, 65new SelectListItem { Text = SelectSources.ModelStateEntryWithPrefix.ToString() }, 66new SelectListItem { Text = SelectSources.ViewDataEntry.ToString() }, 67new SelectListItem { Text = SelectSources.PropertyOfViewDataEntry.ToString() }, 68new SelectListItem { Text = SelectSources.ViewDataEntryWithPrefix.ToString() }, 69new SelectListItem { Text = SelectSources.PropertyOfViewDataEntryWithPrefix.ToString() }, 70new SelectListItem { Text = SelectSources.ModelValue.ToString() }, 71new SelectListItem { Text = SelectSources.PropertyOfModel.ToString() }, 1414new SelectListItem { Text = "cero", Value = "0" }, 1415new SelectListItem { Text = nameof(EnumWithDisplayNames.One), Value = "1" }, 1416new SelectListItem { Text = "dos", Value = "2" }, 1417new SelectListItem { Text = "tres", Value = "3" }, 1418new SelectListItem { Text = "name from resources", Value = "-2" }, 1419new SelectListItem { Text = "menos uno", Value = "-1" }, 1426new SelectListItem { Text = "cero", Value = "0" }, 1427new SelectListItem { Text = nameof(EnumWithDisplayNames.One), Value = "1" }, 1428new SelectListItem { Text = "dos", Value = "2" }, 1429new SelectListItem { Text = "tres", Value = "3" }, 1430new SelectListItem { Text = "name from resources", Value = "-2" }, 1431new SelectListItem { Text = "menos uno", Value = "-1" }, 1438new SelectListItem { Text = nameof(EnumWithDuplicates.Zero), Value = "0" }, 1439new SelectListItem { Text = nameof(EnumWithDuplicates.None), Value = "0" }, 1440new SelectListItem { Text = nameof(EnumWithDuplicates.One), Value = "1" }, 1441new SelectListItem { Text = nameof(EnumWithDuplicates.Duece), Value = "2" }, 1442new SelectListItem { Text = nameof(EnumWithDuplicates.Two), Value = "2" }, 1443new SelectListItem { Text = nameof(EnumWithDuplicates.MoreThanTwo), Value = "3" }, 1444new SelectListItem { Text = nameof(EnumWithDuplicates.Three), Value = "3" }, 1451new SelectListItem { Text = nameof(EnumWithDuplicates.Zero), Value = "0" }, 1452new SelectListItem { Text = nameof(EnumWithDuplicates.None), Value = "0" }, 1453new SelectListItem { Text = nameof(EnumWithDuplicates.One), Value = "1" }, 1454new SelectListItem { Text = nameof(EnumWithDuplicates.Duece), Value = "2" }, 1455new SelectListItem { Text = nameof(EnumWithDuplicates.Two), Value = "2" }, 1456new SelectListItem { Text = nameof(EnumWithDuplicates.MoreThanTwo), Value = "3" }, 1457new SelectListItem { Text = nameof(EnumWithDuplicates.Three), Value = "3" }, 1464new SelectListItem { Text = nameof(EnumWithFields.Zero), Value = "0" }, 1465new SelectListItem { Text = nameof(EnumWithFields.One), Value = "1" }, 1466new SelectListItem { Text = nameof(EnumWithFields.Two), Value = "2" }, 1467new SelectListItem { Text = nameof(EnumWithFields.Three), Value = "3" }, 1468new SelectListItem { Text = nameof(EnumWithFields.MinusTwo), Value = "-2" }, 1469new SelectListItem { Text = nameof(EnumWithFields.MinusOne), Value = "-1" }, 1476new SelectListItem { Text = nameof(EnumWithFields.Zero), Value = "0" }, 1477new SelectListItem { Text = nameof(EnumWithFields.One), Value = "1" }, 1478new SelectListItem { Text = nameof(EnumWithFields.Two), Value = "2" }, 1479new SelectListItem { Text = nameof(EnumWithFields.Three), Value = "3" }, 1480new SelectListItem { Text = nameof(EnumWithFields.MinusTwo), Value = "-2" }, 1481new SelectListItem { Text = nameof(EnumWithFields.MinusOne), Value = "-1" }, 1600var copy = new SelectListItem