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)
171private bool IsWritingCollection => (_depth > 0) && (_scopes![_depth] == JsonNodeType.Collection); 197if (_depth != 0) 528while (_depth > 0) 542if (_depth == 0) 606if (_depth != 0) 628if ((_depth > 0) && _scopes![_depth] == JsonNodeType.Element) 857if ((_nodeType != JsonNodeType.None) && _depth == 0) 1111if (_depth == 0) 1130else if (_scopes.Length == _depth) 1132JsonNodeType[] newScopes = new JsonNodeType[_depth * 2]; 1133Array.Copy(_scopes, newScopes, _depth); 1136_scopes[_depth] = currentNodeType; 1141JsonNodeType nodeTypeToReturn = _scopes![_depth]; 1142_scopes[_depth] = JsonNodeType.None; 1157if (_depth != 0)