1 write to _items
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
887newCacheItem._items = _items ?? new List<ServiceDescriptor>();
13 references to _items
Microsoft.Extensions.DependencyInjection (13)
ServiceLookup\CallSiteFactory.cs (13)
815if (_items != null && _items.Count > 0) 817return _items[_items.Count - 1]; 831Debug.Assert(_items == null); 835return 1 + (_items?.Count ?? 0); 853return _items![index - 1]; 864if (_items != null) 866int index = _items.IndexOf(descriptor); 869return _items.Count - (index + 1); 881Debug.Assert(_items == null); 887newCacheItem._items = _items ?? new List<ServiceDescriptor>(); 888newCacheItem._items.Add(descriptor);