3 instantiations of CacheEntry
System.Text.Json (3)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (3)
294return new CacheEntry(typeInfo); 299return new CacheEntry(edi); 375candidate = new CacheEntry(ExceptionDispatchInfo.Capture(nse));
12 references to CacheEntry
System.Text.Json (12)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (12)
240private readonly ConcurrentDictionary<Type, CacheEntry> _cache = new(); 262CacheEntry entry = GetOrAddCacheEntry(type); 270_cache.TryGetValue(type, out CacheEntry? entry); 280private CacheEntry GetOrAddCacheEntry(Type type) 289private static CacheEntry CreateCacheEntry(Type type, CachingContext context) 303private JsonTypeInfo? FallBackToNearestAncestor(Type type, CacheEntry entry) 307CacheEntry? nearestAncestor = entry.IsNearestAncestorResolved 316private CacheEntry? DetermineNearestAncestor(Type type, CacheEntry entry) 331CacheEntry? candidate = null; 354CacheEntry interfaceEntry = GetOrAddCacheEntry(interfaceType); 397public CacheEntry? NearestAncestor;