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