1 write to _items
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
897newCacheItem._items = _items ?? new List<ServiceDescriptor>();
13 references to _items
Microsoft.Extensions.DependencyInjection (13)
ServiceLookup\CallSiteFactory.cs (13)
825if (_items != null && _items.Count > 0) 827return _items[_items.Count - 1]; 841Debug.Assert(_items == null); 845return 1 + (_items?.Count ?? 0); 863return _items![index - 1]; 874if (_items != null) 876int index = _items.IndexOf(descriptor); 879return _items.Count - (index + 1); 891Debug.Assert(_items == null); 897newCacheItem._items = _items ?? new List<ServiceDescriptor>(); 898newCacheItem._items.Add(descriptor);