3 writes to _nsDeclarations
PresentationFramework (3)
System\Windows\Markup\XmlnsDictionary.cs (3)
105
_nsDeclarations
= new NamespaceDeclaration[_lastDecl+1];
582
_nsDeclarations
= new NamespaceDeclaration[8];
637
_nsDeclarations
= new_nsDeclarations;
62 references to _nsDeclarations
PresentationFramework (62)
System\Windows\Markup\XmlnsDictionary.cs (62)
103
if (
_nsDeclarations
== null)
117
if (xmlnsDictionary.
_nsDeclarations
[i].Uri != null)
120
_nsDeclarations
[i].Prefix = xmlnsDictionary.
_nsDeclarations
[i].Prefix;
121
_nsDeclarations
[i].Uri = xmlnsDictionary.
_nsDeclarations
[i].Uri;
122
_nsDeclarations
[i].ScopeCount = xmlnsDictionary.
_nsDeclarations
[i].ScopeCount;
224
if (
_nsDeclarations
[thisDecl].Uri != null)
226
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
277
yield return new System.Xaml.NamespaceDeclaration(
_nsDeclarations
[i].Uri,
_nsDeclarations
[i].Prefix);
297
if (
_nsDeclarations
[thisDecl].Uri != null)
299
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
344
if ((
_nsDeclarations
[thisDecl].Prefix == prefix) &&
345
!string.IsNullOrEmpty(
_nsDeclarations
[thisDecl].Uri))
347
return
_nsDeclarations
[thisDecl].Uri;
375
if (
_nsDeclarations
[thisDecl].Uri == xmlNamespace)
376
return
_nsDeclarations
[thisDecl].Prefix;
400
_nsDeclarations
[_lastDecl].ScopeCount++;
412
int lastScopeCount =
_nsDeclarations
[_lastDecl].ScopeCount;
415
while (decl > 0 &&
_nsDeclarations
[decl-1].ScopeCount == lastScopeCount)
422
if (
_nsDeclarations
[decl].ScopeCount > 0)
424
_nsDeclarations
[decl].ScopeCount--;
425
_nsDeclarations
[decl].Prefix = String.Empty;
426
_nsDeclarations
[decl].Uri = null;
498
if (
_nsDeclarations
[thisDecl].Uri != null)
500
if (!prefixes.Contains(
_nsDeclarations
[thisDecl].Prefix))
501
prefixes.Add(
_nsDeclarations
[thisDecl].Prefix);
519
if (
_nsDeclarations
[thisDecl].Uri != null)
521
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
544
get {return
_nsDeclarations
.IsSynchronized; }
552
get {return
_nsDeclarations
.SyncRoot; }
583
_nsDeclarations
[0].Prefix = string.Empty;
584
_nsDeclarations
[0].Uri = null;
585
_nsDeclarations
[0].ScopeCount = 0;
614
int lastScopeCount =
_nsDeclarations
[_lastDecl].ScopeCount;
620
thisDecl >= 0 &&
_nsDeclarations
[thisDecl].ScopeCount == lastScopeCount;
623
if (String.Equals(
_nsDeclarations
[thisDecl].Prefix, prefix))
626
_nsDeclarations
[thisDecl].Uri = xmlNamespace;
632
if (_lastDecl ==
_nsDeclarations
.Length - 1)
634
NamespaceDeclaration[] new_nsDeclarations = new NamespaceDeclaration[
_nsDeclarations
.Length * 2];
636
Array.Copy(
_nsDeclarations
, 0, new_nsDeclarations, 0,
_nsDeclarations
.Length);
642
_nsDeclarations
[_lastDecl].Prefix = prefix;
643
_nsDeclarations
[_lastDecl].Uri = xmlNamespace;
645
_nsDeclarations
[_lastDecl].ScopeCount = lastScopeCount;
667
int lastScopeCount =
_nsDeclarations
[_lastDecl-1].ScopeCount;
669
thisDecl >= 0 &&
_nsDeclarations
[thisDecl].ScopeCount == lastScopeCount;
672
if ((
_nsDeclarations
[thisDecl].Prefix == prefix) && (
_nsDeclarations
[thisDecl].Uri == xmlNamespace))
674
_nsDeclarations
[thisDecl].Uri = null;
694
int lastScopeCount =
_nsDeclarations
[i].ScopeCount;
695
while (
_nsDeclarations
[i].ScopeCount == lastScopeCount)
705
string prefix =
_nsDeclarations
[i].Prefix;
706
string xmlNamespace =
_nsDeclarations
[i].Uri;
732
if ( (
_nsDeclarations
[thisDecl].Prefix == prefix) &&
_nsDeclarations
[thisDecl].Uri != null)
734
if (prefix.Length > 0 ||
_nsDeclarations
[thisDecl].Uri.Length > 0)