2 writes to _nsdecls
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (2)
79
_nsdecls
= new NamespaceDeclaration[8];
173
_nsdecls
= newNsdecls;
39 references to _nsdecls
dotnet-svcutil-lib (39)
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (39)
81
_nsdecls
[0].Set(emptyStr, emptyStr, -1, -1);
82
_nsdecls
[1].Set(_xmlNs, nameTable.Add(XmlReservedNs.NsXmlNs), -1, -1);
83
_nsdecls
[2].Set(_xml, nameTable.Add(XmlReservedNs.NsXml), 0, -1);
117
while (
_nsdecls
[decl].scopeId == _scopeId)
121
_hashTable[
_nsdecls
[decl].prefix] =
_nsdecls
[decl].previousNsIndex;
155
if (
_nsdecls
[declIndex].scopeId == _scopeId)
158
_nsdecls
[declIndex].uri = uri;
169
if (_lastDecl ==
_nsdecls
.Length - 1)
171
NamespaceDeclaration[] newNsdecls = new NamespaceDeclaration[
_nsdecls
.Length * 2];
172
Array.Copy(
_nsdecls
, 0, newNsdecls, 0,
_nsdecls
.Length);
176
_nsdecls
[++_lastDecl].Set(prefix, uri, _scopeId, previousDeclIndex);
191
_hashTable[
_nsdecls
[i].prefix] = i;
211
if (String.Equals(
_nsdecls
[declIndex].uri, uri) &&
_nsdecls
[declIndex].scopeId == _scopeId)
213
_nsdecls
[declIndex].uri = null;
215
declIndex =
_nsdecls
[declIndex].previousNsIndex;
224
if (
_nsdecls
[thisDecl].uri != null)
226
prefixes[
_nsdecls
[thisDecl].prefix] =
_nsdecls
[thisDecl].prefix;
248
while (
_nsdecls
[i].scopeId == _scopeId)
260
string prefix =
_nsdecls
[i].prefix;
261
string uri =
_nsdecls
[i].uri;
283
return (declIndex == -1) ? null :
_nsdecls
[declIndex].uri;
293
while (declIndex != -1 &&
_nsdecls
[declIndex].uri == null)
295
declIndex =
_nsdecls
[declIndex].previousNsIndex;
306
if ((object)
_nsdecls
[thisDecl].prefix == (object)prefix &&
_nsdecls
[thisDecl].uri != null)
315
if (String.Equals(
_nsdecls
[thisDecl].prefix, prefix) &&
_nsdecls
[thisDecl].uri != null)
329
if (String.Equals(
_nsdecls
[thisDecl].uri, uri))
331
string prefix =
_nsdecls
[thisDecl].prefix;
344
for (int thisDecl = _lastDecl;
_nsdecls
[thisDecl].scopeId == _scopeId; thisDecl--)
346
if (String.Equals(
_nsdecls
[thisDecl].prefix, prefix) &&
_nsdecls
[thisDecl].uri != null)
348
if (prefix.Length > 0 ||
_nsdecls
[thisDecl].uri.Length > 0)
367
prefix =
_nsdecls
[idx].prefix;
368
uri =
_nsdecls
[idx].uri;