1 write to HashSet
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationStack.cs (1)
40HashSet = new HashSet<object>(List, ReferenceEqualityComparer.Instance);
6 references to HashSet
Microsoft.AspNetCore.Mvc.Core (6)
ModelBinding\Validation\ValidationStack.cs (6)
14public int Count => HashSet?.Count ?? List.Count; 26if (HashSet != null) 28return HashSet.Add(model); 38if (HashSet == null && List.Count > CutOff) 48if (HashSet != null) 50HashSet.Remove(model!);