2 writes to _nsStack
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (2)
276_nsStack = new Namespace[NamespaceStackInitialSize]; 1856_nsStack = newStack;
34 references to _nsStack
dotnet-svcutil-lib (34)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (34)
277_nsStack[0].Set("xmlns", XmlReservedNs.NsXmlNs, NamespaceKind.Special); 278_nsStack[1].Set("xml", XmlReservedNs.NsXml, NamespaceKind.Special); 281_nsStack[2].Set(string.Empty, string.Empty, NamespaceKind.Implied); 286_nsStack[2].Set(string.Empty, (defaultNs == null ? string.Empty : defaultNs), NamespaceKind.Implied); 1318if (_nsStack[i].namespaceUri == ns) 1320string prefix = _nsStack[i].prefix; 1323if (_nsStack[i].prefix == prefix) 1699if (_nsStack[existingNsIndex].namespaceUri != ns) 1701throw new XmlException(ResXml.Xml_RedefinePrefix, new string[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns }); 1710if (_nsStack[existingNsIndex].kind == NamespaceKind.Special) 1714if (ns != _nsStack[existingNsIndex].namespaceUri) 1732kind = (_nsStack[existingNsIndex].namespaceUri == ns) ? NamespaceKind.Implied : NamespaceKind.NeedToWrite; 1779if (_nsStack[existingNsIndex].namespaceUri != ns) 1781throw new XmlException(ResXml.Xml_RedefinePrefix, new string[] { prefix, _nsStack[existingNsIndex].namespaceUri, ns }); 1784NamespaceKind existingNsKind = _nsStack[existingNsIndex].kind; 1794_nsStack[existingNsIndex].kind = NamespaceKind.Written; 1802if (_nsStack[existingNsIndex].namespaceUri == ns && _omitDuplNamespaces) 1852if (top == _nsStack.Length) 1855Array.Copy(_nsStack, newStack, top); 1858_nsStack[top].Set(prefix, ns, kind); 1879string prefix = _nsStack[namespaceIndex].prefix; 1883_nsStack[namespaceIndex].prevNsIndex = existingNsIndex; 1902if (_nsStack[i].prefix == prefix) 1917Debug.Assert(_nsHashtable.ContainsKey(_nsStack[i].prefix)); 1918if (_nsStack[i].prevNsIndex == -1) 1920_nsHashtable.Remove(_nsStack[i].prefix); 1924_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex; 2075if (_nsStack[i].kind == NamespaceKind.NeedToWrite) 2077_nsStack[i].WriteDecl(_writer, _rawWriter); 2104if (_nsStack[i].prefix == prefix) 2106return _nsStack[i].namespaceUri; 2116if (_nsStack[i].prefix == prefix) 2118return _nsStack[i].namespaceUri;