2 writes to nsStack
System.Xml (2)
System\Xml\Core\XmlTextWriter.cs (2)
250
nsStack
= new Namespace[NamespaceStackInitialSize];
1241
nsStack
= newStack;
21 references to nsStack
System.Xml (21)
System\Xml\Core\XmlTextWriter.cs (21)
1137
if (!
nsStack
[i].declared) {
1140
textWriter.Write(
nsStack
[i].prefix);
1143
xmlEncoder.Write(
nsStack
[i].ns);
1218
if (existingNsIndex != -1 &&
nsStack
[existingNsIndex].ns == ns) {
1221
nsStack
[existingNsIndex].declared = true;
1228
nsStack
[existingNsIndex].declared = true; // old one is silenced now
1238
if ( nsIndex ==
nsStack
.Length ) {
1240
Array.Copy(
nsStack
, newStack, nsIndex);
1243
nsStack
[nsIndex].Set(prefix, ns, declared);
1259
string prefix =
nsStack
[namespaceIndex].prefix;
1262
nsStack
[namespaceIndex].prevNsIndex = existingNsIndex;
1270
Debug.Assert(nsHashtable.ContainsKey(
nsStack
[i].prefix));
1271
if (
nsStack
[i].prevNsIndex == -1) {
1272
nsHashtable.Remove(
nsStack
[i].prefix);
1275
nsHashtable[
nsStack
[i].prefix] =
nsStack
[i].prevNsIndex;
1306
if (
nsStack
[i].prefix == prefix ) {
1325
if (
nsStack
[i].prefix == prefix ) {
1335
if (
nsStack
[i].ns == ns) {
1336
if (LookupNamespace(
nsStack
[i].prefix) == i) {
1337
return
nsStack
[i].prefix;