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