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