2 writes to Collection
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
DefaultHtmlGeneratorTest.cs (2)
768
var model = new Model {
Collection
= { "ignored property value" } };
797
var model = new Model {
Collection
= { "ignored property value" } };
9 references to Collection
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
DefaultHtmlGeneratorTest.cs (9)
771
viewContext.ViewData[nameof(Model.
Collection
)] = new[] { "ignored ViewData value" };
772
viewContext.ModelState.SetModelValue(nameof(Model.
Collection
), rawValue, attemptedValue: null);
781
expression: nameof(Model.
Collection
),
800
viewContext.ViewData[nameof(Model.
Collection
)] = rawValue;
801
viewContext.ModelState.SetModelValue(nameof(Model.
Collection
), rawValue, attemptedValue: null);
807
expression: nameof(Model.
Collection
),
824
model.
Collection
.AddRange(rawValue);
828
nameof(Model.
Collection
),
836
expression: nameof(Model.
Collection
),