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