44 writes to Value
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
355
var factorOptions = userFactors.Select(purpose => new SelectListItem { Text = purpose,
Value
= purpose }).ToList();
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultHtmlGenerator.cs (1)
1584
Value
= string.Empty,
HtmlHelper.cs (1)
1388
Value
= keyValuePair.Value,
Rendering\MultiSelectList.cs (1)
167
Value
= value,
Rendering\SelectListItem.cs (1)
27
Value
= value;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (39)
Rendering\HtmlHelperSelectTest.cs (39)
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" },
1606
Value
= item.Value,
35 references to Value
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
SelectTagHelperTest.cs (4)
324
var savedValue = items.Select(item => item.
Value
).ToList();
353
Assert.Equal(savedValue, items.Select(item => item.
Value
));
505
var savedValue = items.Select(item => item.
Value
).ToList();
533
Assert.Equal(savedValue, items.Select(item => item.
Value
));
Microsoft.AspNetCore.Mvc.ViewFeatures (19)
DefaultHtmlGenerator.cs (3)
1046
if (item.
Value
!= null)
1048
tagBuilder.Attributes["value"] = item.
Value
;
1645
var value = item.
Value
?? item.Text;
Rendering\HtmlHelperSelectExtensions.cs (11)
17
/// "selected" attribute to an <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
48
/// <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or <see cref="SelectListItem.Text"/> matches the
88
/// <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
122
/// <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
161
/// "selected" attribute to an <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
199
/// <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
234
/// <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
278
/// "selected" attribute to an <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
317
/// "selected" attribute to an <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
347
/// <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
381
/// <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
Rendering\IHtmlHelper.cs (3)
254
/// "selected" attribute to an <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
376
/// with a decimal representation of the ordinal as <see cref="SelectListItem.
Value
"/>
445
/// <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
Rendering\IHtmlHelperOfT.cs (2)
116
/// "selected" attribute to an <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
238
/// <option> if its <see cref="SelectListItem.
Value
"/> (if non-<c>null</c>) or
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
Rendering\HtmlHelperSelectTest.cs (12)
331
var savedValue = selectList.Select(item => item.
Value
).ToList();
342
Assert.Equal(savedValue, selectList.Select(item => item.
Value
));
752
var savedValue = selectList.Select(item => item.
Value
).ToList();
763
Assert.Equal(savedValue, selectList.Select(item => item.
Value
));
1094
var savedValue = selectList.Select(item => item.
Value
).ToList();
1109
Assert.Equal(savedValue, selectList.Select(item => item.
Value
));
1191
var savedValue = selectList.Select(item => item.
Value
).ToList();
1202
Assert.Equal(savedValue, selectList.Select(item => item.
Value
));
1320
var zeroSelect = Assert.Single(result, s => s.
Value
.Equals("0", StringComparison.Ordinal));
1566
Assert.Equal(expectedItem.
Value
, actualItem.
Value
);
1606
Value = item.
Value
,