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