17 references to CurrentDepth
System.Text.Json (17)
System\Text\Json\Reader\Utf8JsonReader.cs (9)
109
int readerDepth = _bitStack.
CurrentDepth
;
741
if (_bitStack.
CurrentDepth
>= _readerOptions.MaxDepth)
755
if (!_inObject || _bitStack.
CurrentDepth
<= 0)
775
if (_bitStack.
CurrentDepth
>= _readerOptions.MaxDepth)
789
if (_inObject || _bitStack.
CurrentDepth
<= 0)
923
if (_bitStack.
CurrentDepth
!= 0)
1745
if (_bitStack.
CurrentDepth
== 0)
1872
if (_bitStack.
CurrentDepth
== 0 && _tokenType != JsonTokenType.None)
2215
else if (_bitStack.
CurrentDepth
== 0)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (4)
231
if (_bitStack.
CurrentDepth
!= 0)
1577
if (_bitStack.
CurrentDepth
== 0)
1713
if (_bitStack.
CurrentDepth
== 0 && _tokenType != JsonTokenType.None)
2071
else if (_bitStack.
CurrentDepth
== 0)
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
1095
_enclosingContainer = _bitStack.
CurrentDepth
== 0 ? EnclosingContainerType.None : container;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (3)
59
_enclosingContainer = _bitStack.
CurrentDepth
== 0 ? EnclosingContainerType.None : container;
227
_enclosingContainer = _bitStack.
CurrentDepth
== 0 ? EnclosingContainerType.None : container;
394
_enclosingContainer = _bitStack.
CurrentDepth
== 0 ? EnclosingContainerType.None : container;