4 writes to _depth
System.Private.DataContractSerialization (4)
System\Xml\XmlBaseWriter.cs (4)
59
_depth
= 0;
100
_depth
= 0;
665
_depth
++;
688
_depth
--;
25 references to _depth
System.Private.DataContractSerialization (25)
System\Xml\XmlBaseWriter.cs (25)
56
if (
_depth
!= 0)
97
if (
_depth
!= 0)
608
if (
_depth
== 0)
609
throw new InvalidOperationException(SR.Format(SR.XmlInvalidDepth, "WriteEndElement",
_depth
.ToString(CultureInfo.InvariantCulture)));
622
Element element = _elements![
_depth
];
635
if (
_depth
== 0)
636
throw new InvalidOperationException(SR.Format(SR.XmlInvalidDepth, "WriteEndElement",
_depth
.ToString(CultureInfo.InvariantCulture)));
654
Element element = _elements![
_depth
];
670
else if (_elements.Length ==
_depth
)
672
Element[] newElementNodes = new Element[
_depth
* 2];
673
Array.Copy(_elements, newElementNodes,
_depth
);
676
Element element = _elements[
_depth
];
680
_elements[
_depth
] = element;
687
_elements![
_depth
].Clear();
689
if (
_depth
== 0 && _documentState == DocumentState.Document)
719
if (
_depth
== 0)
726
if (
_depth
== 0)
733
if (
_depth
== 0)
740
if (
_depth
== 0)
747
if (
_depth
== 0)
909
while (
_depth
> 0)
1642
this.NamespaceBoundary =
_depth
+ 1;
1818
if (_documentState == DocumentState.Document && count > 1 &&
_depth
== 0)
1837
int prefixId = _elements![
_depth
].PrefixId++;
1838
prefix = string.Create(CultureInfo.InvariantCulture, $"d{
_depth
}p{prefixId}");