2 writes to _nsStack
System.Private.Xml (2)
System\Xml\Core\XmlWellFormedWriter.cs (2)
262_nsStack = new Namespace[NamespaceStackInitialSize]; 1756_nsStack = newStack;
36 references to _nsStack
System.Private.Xml (36)
System\Xml\Core\XmlWellFormedWriter.cs (34)
263_nsStack[0].Set("xmlns", XmlReservedNs.NsXmlNs, NamespaceKind.Special); 264_nsStack[1].Set("xml", XmlReservedNs.NsXml, NamespaceKind.Special); 267_nsStack[2].Set(string.Empty, string.Empty, NamespaceKind.Implied); 272_nsStack[2].Set(string.Empty, defaultNs ?? string.Empty, NamespaceKind.Implied); 1234if (_nsStack[i].namespaceUri == ns) 1236string prefix = _nsStack[i].prefix; 1239if (_nsStack[i].prefix == prefix) 1599if (_nsStack[existingNsIndex].namespaceUri != ns) 1601throw new XmlException(SR.Xml_RedefinePrefix, new string[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns }); 1610if (_nsStack[existingNsIndex].kind == NamespaceKind.Special) 1614if (ns != _nsStack[existingNsIndex].namespaceUri) 1632kind = (_nsStack[existingNsIndex].namespaceUri == ns) ? NamespaceKind.Implied : NamespaceKind.NeedToWrite; 1679if (_nsStack[existingNsIndex].namespaceUri != ns) 1681throw new XmlException(SR.Xml_RedefinePrefix, new string?[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns }); 1684NamespaceKind existingNsKind = _nsStack[existingNsIndex].kind; 1694_nsStack[existingNsIndex].kind = NamespaceKind.Written; 1702if (_nsStack[existingNsIndex].namespaceUri == ns && _omitDuplNamespaces) 1752if (top == _nsStack.Length) 1755Array.Copy(_nsStack, newStack, top); 1758_nsStack[top].Set(prefix, ns, kind); 1781string prefix = _nsStack[namespaceIndex].prefix; 1785_nsStack[namespaceIndex].prevNsIndex = existingNsIndex; 1806if (_nsStack[i].prefix == prefix) 1822Debug.Assert(_nsHashtable.ContainsKey(_nsStack[i].prefix)); 1823if (_nsStack[i].prevNsIndex == -1) 1825_nsHashtable.Remove(_nsStack[i].prefix); 1829_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex; 1965if (_nsStack[i].kind == NamespaceKind.NeedToWrite) 1967_nsStack[i].WriteDecl(_writer, _rawWriter); 1991if (_nsStack[i].prefix == prefix) 1993return _nsStack[i].namespaceUri; 2003if (_nsStack[i].prefix == prefix) 2005return _nsStack[i].namespaceUri;
System\Xml\Core\XmlWellFormedWriterAsync.cs (2)
1383if (_nsStack[i].kind == NamespaceKind.NeedToWrite) 1385await _nsStack[i].WriteDeclAsync(_writer, _rawWriter).ConfigureAwait(false);