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