4 writes to depth
System.Runtime.Serialization (4)
System\Xml\XmlBaseWriter.cs (4)
58this.depth = 0; 91depth = 0; 525depth++; 548depth--;
21 references to depth
System.Runtime.Serialization (21)
System\Xml\XmlBaseWriter.cs (21)
55if (this.depth != 0) 88if (depth != 0) 500if (depth == 0) 501throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.XmlInvalidDepth, "WriteEndElement", depth.ToString(CultureInfo.InvariantCulture)))); 514Element element = elements[depth]; 530else if (elements.Length == depth) 532Element[] newElementNodes = new Element[depth * 2]; 533Array.Copy(elements, newElementNodes, depth); 536Element element = elements[depth]; 540elements[depth] = element; 547elements[depth].Clear(); 549if (depth == 0 && documentState == DocumentState.Document) 574if (depth == 0) 581if (depth == 0) 588if (depth == 0) 595if (depth == 0) 763while (this.depth > 0) 1591this.NamespaceBoundary = depth + 1; 1746if (this.documentState == DocumentState.Document && count > 1 && depth == 0) 1784int prefixId = elements[depth].PrefixId++; 1785prefix = string.Concat("d", depth.ToString(CultureInfo.InvariantCulture), "p", prefixId.ToString(CultureInfo.InvariantCulture));