2 writes to _canUseSerializeHandlerInStreamingState
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (2)
370
_canUseSerializeHandlerInStreamingState
= 2;
378
Interlocked.CompareExchange(ref
_canUseSerializeHandlerInStreamingState
, 1, 0);
2 references to _canUseSerializeHandlerInStreamingState
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (2)
352
private bool CanUseSerializeHandlerInStreaming =>
_canUseSerializeHandlerInStreamingState
== 1;
364
if (
_canUseSerializeHandlerInStreamingState
!= 2)