3 writes to _nsDeclarations
PresentationFramework (3)
System\Windows\Markup\XmlnsDictionary.cs (3)
106
_nsDeclarations
= new NamespaceDeclaration[_lastDecl+1];
583
_nsDeclarations
= new NamespaceDeclaration[8];
638
_nsDeclarations
= new_nsDeclarations;
62 references to _nsDeclarations
PresentationFramework (62)
System\Windows\Markup\XmlnsDictionary.cs (62)
104
if (
_nsDeclarations
== null)
118
if (xmlnsDictionary.
_nsDeclarations
[i].Uri != null)
121
_nsDeclarations
[i].Prefix = xmlnsDictionary.
_nsDeclarations
[i].Prefix;
122
_nsDeclarations
[i].Uri = xmlnsDictionary.
_nsDeclarations
[i].Uri;
123
_nsDeclarations
[i].ScopeCount = xmlnsDictionary.
_nsDeclarations
[i].ScopeCount;
225
if (
_nsDeclarations
[thisDecl].Uri != null)
227
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
278
yield return new System.Xaml.NamespaceDeclaration(
_nsDeclarations
[i].Uri,
_nsDeclarations
[i].Prefix);
298
if (
_nsDeclarations
[thisDecl].Uri != null)
300
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
345
if ((
_nsDeclarations
[thisDecl].Prefix == prefix) &&
346
!string.IsNullOrEmpty(
_nsDeclarations
[thisDecl].Uri))
348
return
_nsDeclarations
[thisDecl].Uri;
376
if (
_nsDeclarations
[thisDecl].Uri == xmlNamespace)
377
return
_nsDeclarations
[thisDecl].Prefix;
401
_nsDeclarations
[_lastDecl].ScopeCount++;
413
int lastScopeCount =
_nsDeclarations
[_lastDecl].ScopeCount;
416
while (decl > 0 &&
_nsDeclarations
[decl-1].ScopeCount == lastScopeCount)
423
if (
_nsDeclarations
[decl].ScopeCount > 0)
425
_nsDeclarations
[decl].ScopeCount--;
426
_nsDeclarations
[decl].Prefix = String.Empty;
427
_nsDeclarations
[decl].Uri = null;
499
if (
_nsDeclarations
[thisDecl].Uri != null)
501
if (!prefixes.Contains(
_nsDeclarations
[thisDecl].Prefix))
502
prefixes.Add(
_nsDeclarations
[thisDecl].Prefix);
520
if (
_nsDeclarations
[thisDecl].Uri != null)
522
namespaceTable[
_nsDeclarations
[thisDecl].Prefix] =
_nsDeclarations
[thisDecl].Uri;
545
get {return
_nsDeclarations
.IsSynchronized; }
553
get {return
_nsDeclarations
.SyncRoot; }
584
_nsDeclarations
[0].Prefix = string.Empty;
585
_nsDeclarations
[0].Uri = null;
586
_nsDeclarations
[0].ScopeCount = 0;
615
int lastScopeCount =
_nsDeclarations
[_lastDecl].ScopeCount;
621
thisDecl >= 0 &&
_nsDeclarations
[thisDecl].ScopeCount == lastScopeCount;
624
if (String.Equals(
_nsDeclarations
[thisDecl].Prefix, prefix))
627
_nsDeclarations
[thisDecl].Uri = xmlNamespace;
633
if (_lastDecl ==
_nsDeclarations
.Length - 1)
635
NamespaceDeclaration[] new_nsDeclarations = new NamespaceDeclaration[
_nsDeclarations
.Length * 2];
637
Array.Copy(
_nsDeclarations
, 0, new_nsDeclarations, 0,
_nsDeclarations
.Length);
643
_nsDeclarations
[_lastDecl].Prefix = prefix;
644
_nsDeclarations
[_lastDecl].Uri = xmlNamespace;
646
_nsDeclarations
[_lastDecl].ScopeCount = lastScopeCount;
668
int lastScopeCount =
_nsDeclarations
[_lastDecl-1].ScopeCount;
670
thisDecl >= 0 &&
_nsDeclarations
[thisDecl].ScopeCount == lastScopeCount;
673
if ((
_nsDeclarations
[thisDecl].Prefix == prefix) && (
_nsDeclarations
[thisDecl].Uri == xmlNamespace))
675
_nsDeclarations
[thisDecl].Uri = null;
695
int lastScopeCount =
_nsDeclarations
[i].ScopeCount;
696
while (
_nsDeclarations
[i].ScopeCount == lastScopeCount)
706
string prefix =
_nsDeclarations
[i].Prefix;
707
string xmlNamespace =
_nsDeclarations
[i].Uri;
733
if ( (
_nsDeclarations
[thisDecl].Prefix == prefix) &&
_nsDeclarations
[thisDecl].Uri != null)
735
if (prefix.Length > 0 ||
_nsDeclarations
[thisDecl].Uri.Length > 0)