1 write to _items
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
798newCacheItem._items = _items ?? new List<ServiceDescriptor>();
13 references to _items
Microsoft.Extensions.DependencyInjection (13)
ServiceLookup\CallSiteFactory.cs (13)
726if (_items != null && _items.Count > 0) 728return _items[_items.Count - 1]; 742Debug.Assert(_items == null); 746return 1 + (_items?.Count ?? 0); 764return _items![index - 1]; 775if (_items != null) 777int index = _items.IndexOf(descriptor); 780return _items.Count - (index + 1); 792Debug.Assert(_items == null); 798newCacheItem._items = _items ?? new List<ServiceDescriptor>(); 799newCacheItem._items.Add(descriptor);