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