2 writes to nsdecls
System.Xml (2)
System\Xml\XmlNamespacemanager.cs (2)
80
nsdecls
= new NamespaceDeclaration[8];
158
nsdecls
= newNsdecls;
39 references to nsdecls
System.Xml (39)
System\Xml\XmlNamespacemanager.cs (39)
82
nsdecls
[0].Set( emptyStr, emptyStr, -1, -1 );
83
nsdecls
[1].Set( xmlNs, nameTable.Add( XmlReservedNs.NsXmlNs ), -1, -1 );
84
nsdecls
[2].Set( xml, nameTable.Add( XmlReservedNs.NsXml ), 0, -1 );
111
while(
nsdecls
[decl].scopeId == scopeId ) {
113
hashTable[
nsdecls
[decl].prefix] =
nsdecls
[decl].previousNsIndex;
143
if (
nsdecls
[declIndex].scopeId == scopeId ) {
145
nsdecls
[declIndex].uri = uri;
155
if ( lastDecl ==
nsdecls
.Length - 1 ) {
156
NamespaceDeclaration[] newNsdecls = new NamespaceDeclaration[
nsdecls
.Length * 2];
157
Array.Copy(
nsdecls
, 0, newNsdecls, 0,
nsdecls
.Length );
161
nsdecls
[++lastDecl].Set( prefix, uri, scopeId, previousDeclIndex );
173
hashTable[
nsdecls
[i].prefix] = i;
189
if ( String.Equals(
nsdecls
[declIndex].uri, uri ) &&
nsdecls
[declIndex].scopeId == scopeId ) {
190
nsdecls
[declIndex].uri = null;
192
declIndex =
nsdecls
[declIndex].previousNsIndex;
199
if (
nsdecls
[thisDecl].uri != null ) {
200
prefixes[
nsdecls
[thisDecl].prefix] =
nsdecls
[thisDecl].prefix;
220
while (
nsdecls
[i].scopeId == scopeId ) {
230
string prefix =
nsdecls
[i].prefix;
231
string uri =
nsdecls
[i].uri;
249
return ( declIndex == -1 ) ? null :
nsdecls
[declIndex].uri;
256
while ( declIndex != -1 &&
nsdecls
[declIndex].uri == null ) {
257
declIndex =
nsdecls
[declIndex].previousNsIndex;
266
if ( (object)
nsdecls
[thisDecl].prefix == (object)prefix &&
nsdecls
[thisDecl].uri != null ) {
273
if ( String.Equals(
nsdecls
[thisDecl].prefix, prefix ) &&
nsdecls
[thisDecl].uri != null ) {
284
if ( String.Equals(
nsdecls
[thisDecl].uri, uri ) ) {
285
string prefix =
nsdecls
[thisDecl].prefix;
296
for( int thisDecl = lastDecl;
nsdecls
[thisDecl].scopeId == scopeId; thisDecl-- ) {
297
if ( String.Equals(
nsdecls
[thisDecl].prefix, prefix ) &&
nsdecls
[thisDecl].uri != null ) {
298
if ( prefix.Length > 0 ||
nsdecls
[thisDecl].uri.Length > 0 ) {
315
prefix =
nsdecls
[idx].prefix;
316
uri =
nsdecls
[idx].uri;