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