5 writes to Selected
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultHtmlGenerator.cs (1)
1585Selected = false,
Rendering\MultiSelectList.cs (2)
169Selected = selectedValues.Contains(value), 193Selected = selectedValues.Contains(item),
Rendering\SelectListItem.cs (1)
39Selected = selected;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Rendering\HtmlHelperSelectTest.cs (1)
1604Selected = item.Selected,
57 references to Selected
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
SelectTagHelperTest.cs (4)
322var savedSelected = items.Select(item => item.Selected).ToList(); 351Assert.Equal(savedSelected, items.Select(item => item.Selected)); 503var savedSelected = items.Select(item => item.Selected).ToList(); 531Assert.Equal(savedSelected, items.Select(item => item.Selected));
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
DefaultHtmlGenerator.cs (2)
1038return GenerateOption(item, text, item.Selected); 1642var selected = item.Selected;
IHtmlGenerator.cs (1)
417/// <c>null</c>, selects &lt;option&gt; elements based on <see cref="SelectListItem.Selected"/> values in
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (50)
Rendering\HtmlHelperSelectTest.cs (50)
329var savedSelected = selectList.Select(item => item.Selected).ToList(); 340Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 355var savedSelected = selectList.Select(item => item.Selected).ToList(); 362Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 395var savedSelected = selectList.Select(item => item.Selected).ToList(); 402Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 600var savedSelected = selectList.Select(item => item.Selected).ToList(); 611Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 624var savedSelected = selectList.Select(item => item.Selected).ToList(); 635Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 648var savedSelected = selectList.Select(item => item.Selected).ToList(); 659Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 673var savedSelected = selectList.Select(item => item.Selected).ToList(); 684Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 694var savedSelected = selectList.Select(item => item.Selected).ToList(); 712Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 722var savedSelected = selectList.Select(item => item.Selected).ToList(); 735Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 750var savedSelected = selectList.Select(item => item.Selected).ToList(); 761Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 777var savedSelected = selectList.Select(item => item.Selected).ToList(); 784Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 798var savedSelected = selectList.Select(item => item.Selected).ToList(); 805Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1004var savedSelected = selectList.Select(item => item.Selected).ToList(); 1011Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1025var savedSelected = selectList.Select(item => item.Selected).ToList(); 1032Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1042var savedSelected = selectList.Select(item => item.Selected).ToList(); 1056Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1070var savedSelected = selectList.Select(item => item.Selected).ToList(); 1077Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1092var savedSelected = selectList.Select(item => item.Selected).ToList(); 1107Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1122var savedSelected = selectList.Select(item => item.Selected).ToList(); 1133Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1146var savedSelected = selectList.Select(item => item.Selected).ToList(); 1153Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1166var savedSelected = selectList.Select(item => item.Selected).ToList(); 1173Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1189var savedSelected = selectList.Select(item => item.Selected).ToList(); 1200Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1217var savedSelected = selectList.Select(item => item.Selected).ToList(); 1224Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1238var savedSelected = selectList.Select(item => item.Selected).ToList(); 1245Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1260var savedSelected = selectList.Select(item => item.Selected).ToList(); 1267Assert.Equal(savedSelected, selectList.Select(item => item.Selected)); 1564Assert.False(actualItem.Selected); 1604Selected = item.Selected,