3 instantiations of CacheEntry
System.Text.Json (3)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (3)
263return new CacheEntry(typeInfo); 268return new CacheEntry(edi); 344candidate = new CacheEntry(ExceptionDispatchInfo.Capture(nse));
12 references to CacheEntry
System.Text.Json (12)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (12)
209private readonly ConcurrentDictionary<Type, CacheEntry> _cache = new(); 231CacheEntry entry = GetOrAddCacheEntry(type); 239_cache.TryGetValue(type, out CacheEntry? entry); 249private CacheEntry GetOrAddCacheEntry(Type type) 258private static CacheEntry CreateCacheEntry(Type type, CachingContext context) 272private JsonTypeInfo? FallBackToNearestAncestor(Type type, CacheEntry entry) 276CacheEntry? nearestAncestor = entry.IsNearestAncestorResolved 285private CacheEntry? DetermineNearestAncestor(Type type, CacheEntry entry) 300CacheEntry? candidate = null; 323CacheEntry interfaceEntry = GetOrAddCacheEntry(interfaceType); 366public CacheEntry? NearestAncestor;