3 instantiations of CacheEntry
System.Text.Json (3)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (3)
293return new CacheEntry(typeInfo); 298return new CacheEntry(edi); 374candidate = new CacheEntry(ExceptionDispatchInfo.Capture(nse));
12 references to CacheEntry
System.Text.Json (12)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (12)
239private readonly ConcurrentDictionary<Type, CacheEntry> _cache = new(); 261CacheEntry entry = GetOrAddCacheEntry(type); 269_cache.TryGetValue(type, out CacheEntry? entry); 279private CacheEntry GetOrAddCacheEntry(Type type) 288private static CacheEntry CreateCacheEntry(Type type, CachingContext context) 302private JsonTypeInfo? FallBackToNearestAncestor(Type type, CacheEntry entry) 306CacheEntry? nearestAncestor = entry.IsNearestAncestorResolved 315private CacheEntry? DetermineNearestAncestor(Type type, CacheEntry entry) 330CacheEntry? candidate = null; 353CacheEntry interfaceEntry = GetOrAddCacheEntry(interfaceType); 396public CacheEntry? NearestAncestor;