1 write to _items
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
818newCacheItem._items = _items ?? new List<ServiceDescriptor>();
13 references to _items
Microsoft.Extensions.DependencyInjection (13)
ServiceLookup\CallSiteFactory.cs (13)
746if (_items != null && _items.Count > 0) 748return _items[_items.Count - 1]; 762Debug.Assert(_items == null); 766return 1 + (_items?.Count ?? 0); 784return _items![index - 1]; 795if (_items != null) 797int index = _items.IndexOf(descriptor); 800return _items.Count - (index + 1); 812Debug.Assert(_items == null); 818newCacheItem._items = _items ?? new List<ServiceDescriptor>(); 819newCacheItem._items.Add(descriptor);