2 writes to _storage
NuGet.DependencyResolver.Core (2)
GraphModel\Tracker.cs (2)
112_storage = item; 121_storage = new HashSet<GraphItem<TItem>>(capacity: 3) { existingItem, item };
8 references to _storage
NuGet.DependencyResolver.Core (8)
GraphModel\Tracker.cs (8)
110if (_storage is null) 114else if (_storage is GraphItem<TItem> existingItem) 127((HashSet<GraphItem<TItem>>)_storage).Add(item); 146public bool HasMultipleItems => _storage is HashSet<GraphItem<TItem>>; 169if (_entry._storage is null) 173else if (_entry._storage is GraphItem<TItem>) 180_setEnumerator = ((HashSet<GraphItem<TItem>>)_entry._storage).GetEnumerator(); 197_current = (GraphItem<TItem>)_entry._storage!;