4 writes to _depth
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (4)
199
_depth
= 0;
1125
_depth
++;
1143
_depth
--;
1159
_depth
= 0;
17 references to _depth
System.Private.DataContractSerialization (17)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (17)
171
private bool IsWritingCollection => (
_depth
> 0) && (_scopes![
_depth
] == JsonNodeType.Collection);
197
if (
_depth
!= 0)
528
while (
_depth
> 0)
542
if (
_depth
== 0)
606
if (
_depth
!= 0)
628
if ((
_depth
> 0) && _scopes![
_depth
] == JsonNodeType.Element)
857
if ((_nodeType != JsonNodeType.None) &&
_depth
== 0)
1111
if (
_depth
== 0)
1130
else if (_scopes.Length ==
_depth
)
1132
JsonNodeType[] newScopes = new JsonNodeType[
_depth
* 2];
1133
Array.Copy(_scopes, newScopes,
_depth
);
1136
_scopes[
_depth
] = currentNodeType;
1141
JsonNodeType nodeTypeToReturn = _scopes![
_depth
];
1142
_scopes[
_depth
] = JsonNodeType.None;
1157
if (
_depth
!= 0)