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