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