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();
164
if (
_cachingContext
== null)
170
return
_cachingContext
.TryGetTypeInfo(type, out typeInfo);
226
_cachingContext
?.Clear();
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
983
if (
_cachingContext
is { } cachingContext)