10 references to List
Microsoft.AspNetCore.Mvc.Core (10)
ModelBinding\Validation\ValidationStack.cs (10)
14
public int Count => HashSet?.Count ??
List
.Count;
36
List
.Add(model);
38
if (HashSet == null &&
List
.Count > CutOff)
40
HashSet = new HashSet<object>(
List
, ReferenceEqualityComparer.Instance);
56
Debug.Assert(ReferenceEquals(
List
[
List
.Count - 1], model));
57
List
.RemoveAt(
List
.Count - 1);
64
for (var i = 0; i <
List
.Count; i++)
66
if (ReferenceEquals(model,
List
[i]))