1 write to _items
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
971newCacheItem._items = _items ?? new List<ServiceDescriptor>();
13 references to _items
Microsoft.Extensions.DependencyInjection (13)
ServiceLookup\CallSiteFactory.cs (13)
899if (_items != null && _items.Count > 0) 901return _items[_items.Count - 1]; 915Debug.Assert(_items == null); 919return 1 + (_items?.Count ?? 0); 937return _items![index - 1]; 948if (_items != null) 950int index = _items.IndexOf(descriptor); 953return _items.Count - (index + 1); 965Debug.Assert(_items == null); 971newCacheItem._items = _items ?? new List<ServiceDescriptor>(); 972newCacheItem._items.Add(descriptor);