1 write to _cachingContext
System.Text.Json (1)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
33
return Interlocked.CompareExchange(ref
_cachingContext
, ctx, null) ?? ctx;
5 references to _cachingContext
System.Text.Json (5)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (4)
28
return
_cachingContext
?? GetOrCreate();
140
if (
_cachingContext
== null)
146
return
_cachingContext
.TryGetTypeInfo(type, out typeInfo);
202
_cachingContext
?.Clear();
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
945
if (
_cachingContext
is { } cachingContext)