2 writes to nsStack
System.Xml (2)
System\Xml\Core\XmlWellFormedWriter.cs (2)
271nsStack = new Namespace[NamespaceStackInitialSize]; 1527nsStack = newStack;
36 references to nsStack
System.Xml (36)
System\Xml\Core\XmlWellFormedWriter.cs (34)
272nsStack[0].Set("xmlns", XmlReservedNs.NsXmlNs, NamespaceKind.Special); 273nsStack[1].Set("xml", XmlReservedNs.NsXml, NamespaceKind.Special); 275nsStack[2].Set(string.Empty, string.Empty, NamespaceKind.Implied); 279nsStack[2].Set(string.Empty, (defaultNs == null ? string.Empty : defaultNs), NamespaceKind.Implied); 1096if (nsStack[i].namespaceUri == ns) { 1097string prefix = nsStack[i].prefix; 1099if (nsStack[i].prefix == prefix) { 1400if (nsStack[existingNsIndex].namespaceUri != ns) { 1401throw new XmlException(Res.Xml_RedefinePrefix, new string[] { prefix, nsStack[existingNsIndex].namespaceUri, ns }); 1409if (nsStack[existingNsIndex].kind == NamespaceKind.Special) { 1411if (ns != nsStack[existingNsIndex].namespaceUri) { 1425kind = (nsStack[existingNsIndex].namespaceUri == ns) ? NamespaceKind.Implied : NamespaceKind.NeedToWrite; 1465if (nsStack[existingNsIndex].namespaceUri != ns) { 1466throw new XmlException(Res.Xml_RedefinePrefix, new string[] { prefix, nsStack[existingNsIndex].namespaceUri, ns }); 1469NamespaceKind existingNsKind = nsStack[existingNsIndex].kind; 1477nsStack[existingNsIndex].kind = NamespaceKind.Written; 1484if (nsStack[existingNsIndex].namespaceUri == ns && omitDuplNamespaces) { 1524if (top == nsStack.Length) { 1526Array.Copy(nsStack, newStack, top); 1529nsStack[top].Set(prefix, ns, kind); 1546string prefix = nsStack[namespaceIndex].prefix; 1549nsStack[namespaceIndex].prevNsIndex = existingNsIndex; 1563if (nsStack[i].prefix == prefix) { 1575Debug.Assert(nsHashtable.ContainsKey(nsStack[i].prefix)); 1576if (nsStack[i].prevNsIndex == -1) { 1577nsHashtable.Remove(nsStack[i].prefix); 1580nsHashtable[nsStack[i].prefix] = nsStack[i].prevNsIndex; 1718if (nsStack[i].kind == NamespaceKind.NeedToWrite) { 1719nsStack[i].WriteDecl(writer, rawWriter); 1740if (nsStack[i].prefix == prefix) { 1741return nsStack[i].namespaceUri; 1749if (nsStack[i].prefix == prefix) { 1750return nsStack[i].namespaceUri;
System\Xml\Core\XmlWellFormedWriterAsync.cs (2)
1162if (nsStack[i].kind == NamespaceKind.NeedToWrite) { 1163await nsStack[i].WriteDeclAsync(writer, rawWriter).ConfigureAwait(false);