3 instantiations of CacheEntry
System.Text.Json (3)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (3)
269return new CacheEntry(typeInfo); 274return new CacheEntry(edi); 350candidate = new CacheEntry(ExceptionDispatchInfo.Capture(nse));
12 references to CacheEntry
System.Text.Json (12)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (12)
215private readonly ConcurrentDictionary<Type, CacheEntry> _cache = new(); 237CacheEntry entry = GetOrAddCacheEntry(type); 245_cache.TryGetValue(type, out CacheEntry? entry); 255private CacheEntry GetOrAddCacheEntry(Type type) 264private static CacheEntry CreateCacheEntry(Type type, CachingContext context) 278private JsonTypeInfo? FallBackToNearestAncestor(Type type, CacheEntry entry) 282CacheEntry? nearestAncestor = entry.IsNearestAncestorResolved 291private CacheEntry? DetermineNearestAncestor(Type type, CacheEntry entry) 306CacheEntry? candidate = null; 329CacheEntry interfaceEntry = GetOrAddCacheEntry(interfaceType); 372public CacheEntry? NearestAncestor;