3 writes to _nsDeclarations
PresentationFramework (3)
System\Windows\Markup\XmlnsDictionary.cs (3)
109
_nsDeclarations
= new NamespaceDeclaration[_lastDecl+1];
587
_nsDeclarations
= new NamespaceDeclaration[8];
642
_nsDeclarations
= new_nsDeclarations;
62 references to _nsDeclarations
PresentationFramework (62)
System\Windows\Markup\XmlnsDictionary.cs (62)
107
if (
_nsDeclarations
== null)
121
if (xmlnsDictionary.
_nsDeclarations
[i].Uri != null)
124
_nsDeclarations
[i].Prefix = xmlnsDictionary.
_nsDeclarations
[i].Prefix;
125
_nsDeclarations
[i].Uri = xmlnsDictionary.
_nsDeclarations
[i].Uri;
126
_nsDeclarations
[i].ScopeCount = xmlnsDictionary.
_nsDeclarations
[i].ScopeCount;
228
if (
_nsDeclarations
[thisDecl].Uri != null)
230
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
282
yield return new System.Xaml.NamespaceDeclaration(
_nsDeclarations
[i].Uri,
_nsDeclarations
[i].Prefix);
302
if (
_nsDeclarations
[thisDecl].Uri != null)
304
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
349
if ((
_nsDeclarations
[thisDecl].Prefix == prefix) &&
350
!string.IsNullOrEmpty(
_nsDeclarations
[thisDecl].Uri))
352
return
_nsDeclarations
[thisDecl].Uri;
380
if (
_nsDeclarations
[thisDecl].Uri == xmlNamespace)
381
return
_nsDeclarations
[thisDecl].Prefix;
405
_nsDeclarations
[_lastDecl].ScopeCount++;
417
int lastScopeCount =
_nsDeclarations
[_lastDecl].ScopeCount;
420
while (decl > 0 &&
_nsDeclarations
[decl-1].ScopeCount == lastScopeCount)
427
if (
_nsDeclarations
[decl].ScopeCount > 0)
429
_nsDeclarations
[decl].ScopeCount--;
430
_nsDeclarations
[decl].Prefix = String.Empty;
431
_nsDeclarations
[decl].Uri = null;
503
if (
_nsDeclarations
[thisDecl].Uri != null)
505
if (!prefixes.Contains(
_nsDeclarations
[thisDecl].Prefix))
506
prefixes.Add(
_nsDeclarations
[thisDecl].Prefix);
524
if (
_nsDeclarations
[thisDecl].Uri != null)
526
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
549
get {return
_nsDeclarations
.IsSynchronized; }
557
get {return
_nsDeclarations
.SyncRoot; }
588
_nsDeclarations
[0].Prefix = string.Empty;
589
_nsDeclarations
[0].Uri = null;
590
_nsDeclarations
[0].ScopeCount = 0;
619
int lastScopeCount =
_nsDeclarations
[_lastDecl].ScopeCount;
625
thisDecl >= 0 &&
_nsDeclarations
[thisDecl].ScopeCount == lastScopeCount;
628
if (String.Equals(
_nsDeclarations
[thisDecl].Prefix, prefix))
631
_nsDeclarations
[thisDecl].Uri = xmlNamespace;
637
if (_lastDecl ==
_nsDeclarations
.Length - 1)
639
NamespaceDeclaration[] new_nsDeclarations = new NamespaceDeclaration[
_nsDeclarations
.Length * 2];
641
Array.Copy(
_nsDeclarations
, 0, new_nsDeclarations, 0,
_nsDeclarations
.Length);
647
_nsDeclarations
[_lastDecl].Prefix = prefix;
648
_nsDeclarations
[_lastDecl].Uri = xmlNamespace;
650
_nsDeclarations
[_lastDecl].ScopeCount = lastScopeCount;
672
int lastScopeCount =
_nsDeclarations
[_lastDecl-1].ScopeCount;
674
thisDecl >= 0 &&
_nsDeclarations
[thisDecl].ScopeCount == lastScopeCount;
677
if ((
_nsDeclarations
[thisDecl].Prefix == prefix) && (
_nsDeclarations
[thisDecl].Uri == xmlNamespace))
679
_nsDeclarations
[thisDecl].Uri = null;
699
int lastScopeCount =
_nsDeclarations
[i].ScopeCount;
700
while (
_nsDeclarations
[i].ScopeCount == lastScopeCount)
710
string prefix =
_nsDeclarations
[i].Prefix;
711
string xmlNamespace =
_nsDeclarations
[i].Uri;
737
if ( (
_nsDeclarations
[thisDecl].Prefix == prefix) &&
_nsDeclarations
[thisDecl].Uri != null)
739
if (prefix.Length > 0 ||
_nsDeclarations
[thisDecl].Uri.Length > 0)