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);
1318
if (
_nsStack
[i].namespaceUri == ns)
1320
string prefix =
_nsStack
[i].prefix;
1323
if (
_nsStack
[i].prefix == prefix)
1699
if (
_nsStack
[existingNsIndex].namespaceUri != ns)
1701
throw new XmlException(ResXml.Xml_RedefinePrefix, new string[] { prefix,
_nsStack
[existingNsIndex].namespaceUri, ns });
1710
if (
_nsStack
[existingNsIndex].kind == NamespaceKind.Special)
1714
if (ns !=
_nsStack
[existingNsIndex].namespaceUri)
1732
kind = (
_nsStack
[existingNsIndex].namespaceUri == ns) ? NamespaceKind.Implied : NamespaceKind.NeedToWrite;
1779
if (
_nsStack
[existingNsIndex].namespaceUri != ns)
1781
throw new XmlException(ResXml.Xml_RedefinePrefix, new string[] { prefix,
_nsStack
[existingNsIndex].namespaceUri, ns });
1784
NamespaceKind existingNsKind =
_nsStack
[existingNsIndex].kind;
1794
_nsStack
[existingNsIndex].kind = NamespaceKind.Written;
1802
if (
_nsStack
[existingNsIndex].namespaceUri == ns && _omitDuplNamespaces)
1852
if (top ==
_nsStack
.Length)
1855
Array.Copy(
_nsStack
, newStack, top);
1858
_nsStack
[top].Set(prefix, ns, kind);
1879
string prefix =
_nsStack
[namespaceIndex].prefix;
1883
_nsStack
[namespaceIndex].prevNsIndex = existingNsIndex;
1902
if (
_nsStack
[i].prefix == prefix)
1917
Debug.Assert(_nsHashtable.ContainsKey(
_nsStack
[i].prefix));
1918
if (
_nsStack
[i].prevNsIndex == -1)
1920
_nsHashtable.Remove(
_nsStack
[i].prefix);
1924
_nsHashtable[
_nsStack
[i].prefix] =
_nsStack
[i].prevNsIndex;
2075
if (
_nsStack
[i].kind == NamespaceKind.NeedToWrite)
2077
_nsStack
[i].WriteDecl(_writer, _rawWriter);
2104
if (
_nsStack
[i].prefix == prefix)
2106
return
_nsStack
[i].namespaceUri;
2116
if (
_nsStack
[i].prefix == prefix)
2118
return
_nsStack
[i].namespaceUri;