19 instantiations of NamespaceDeclaration
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2127NamespaceDeclaration namespaceDeclaration = new NamespaceDeclaration(xamlNs, prefix);
System\Windows\Markup\XmlnsDictionary.cs (1)
278yield return new System.Xaml.NamespaceDeclaration(_nsDeclarations[i].Uri, _nsDeclarations[i].Prefix);
System.Xaml (8)
System\Xaml\Context\XamlCommonFrame.cs (1)
83_namespaceDeclarations.Add(new NamespaceDeclaration(kvp.Value, kvp.Key));
System\Xaml\Context\XamlParserContext.cs (1)
107yield return new NamespaceDeclaration(kvp.Value, kvp.Key);
System\Xaml\Parser\NamespacePrefixLookup.cs (1)
33_newNamespaces.Add(new NamespaceDeclaration(ns, newPrefix));
System\Xaml\Parser\NodeStreamSorter.cs (1)
218XamlNode node = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(uriString, prefix));
System\Xaml\Parser\XamlPullParser.cs (1)
811XamlNode addNs = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(xamlNs, prefix));
System\Xaml\XamlObjectReader.cs (1)
2555new NamespaceDeclaration(pair.Key, pair.Value)));
System\Xaml\XamlXmlWriter.cs (2)
565currentState.WriteNamespace(this, new NamespaceDeclaration(chosenNamespace, prefix)); 570currentState.WriteNamespace(this, new NamespaceDeclaration(chosenNamespace, prefix));
System.Xaml.Tests (9)
System\Xaml\NamespaceDeclarationTests.cs (1)
17var declaration = new NamespaceDeclaration(ns, prefix);
System\Xaml\XamlBackgroundReaderTests.cs (1)
24NamespaceResult = new NamespaceDeclaration("ns", "prefix"),
System\Xaml\XamlNodeListTests.cs (3)
423var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix"); 455var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix"); 487var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix");
System\Xaml\XamlNodeQueueTests.cs (2)
338var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix"); 369var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix");
System\Xaml\XamlReaderTests.cs (1)
62NamespaceResult = new NamespaceDeclaration("ns", "prefix"),
System\Xaml\XamlWriterTests.cs (1)
72NamespaceResult = new NamespaceDeclaration("ns", "prefix")
73 references to NamespaceDeclaration
PresentationFramework (17)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
180override public NamespaceDeclaration Namespace 2127NamespaceDeclaration namespaceDeclaration = new NamespaceDeclaration(xamlNs, prefix);
System\Windows\Markup\XmlnsDictionary.cs (1)
272public System.Collections.Generic.IEnumerable<System.Xaml.NamespaceDeclaration> GetNamespacePrefixes()
System\Windows\TemplateContent.cs (14)
29private FrugalObjectList<System.Xaml.NamespaceDeclaration> _namespaces; 85public FrugalObjectList<System.Xaml.NamespaceDeclaration> Namespaces 91_namespaces = new FrugalObjectList<System.Xaml.NamespaceDeclaration>(); 138public void AddNamespace(System.Xaml.NamespaceDeclaration nsd) 162public FrugalObjectList<System.Xaml.NamespaceDeclaration> InScopeNamespaces 166FrugalObjectList<System.Xaml.NamespaceDeclaration> allNamespaces = null; 175allNamespaces = new FrugalObjectList<System.Xaml.NamespaceDeclaration>(); 794FrugalObjectList<System.Xaml.NamespaceDeclaration> previousNamespaces, 881FrugalObjectList<System.Xaml.NamespaceDeclaration> localNamespaces = null; 884localNamespaces = new FrugalObjectList<Xaml.NamespaceDeclaration>(); 1187FrugalObjectList<System.Xaml.NamespaceDeclaration> previousNamespaces, 1188FrugalObjectList<System.Xaml.NamespaceDeclaration> localNamespaces) 1467FrugalObjectList<NamespaceDeclaration> namespaces = Frames.InScopeNamespaces; 1482IEnumerable<NamespaceDeclaration> IXamlNamespaceResolver.GetNamespacePrefixes()
System.Xaml (45)
System\Xaml\Context\ObjectWriterContext.cs (2)
241public override IEnumerable<NamespaceDeclaration> GetNamespacePrefixes() 250foreach (NamespaceDeclaration namespaceDeclaration in frame.GetNamespacePrefixes())
System\Xaml\Context\ServiceProviderContext.cs (1)
255IEnumerable<NamespaceDeclaration> IXamlNamespaceResolver.GetNamespacePrefixes()
System\Xaml\Context\XamlCommonFrame.cs (3)
78public IEnumerable<NamespaceDeclaration> GetNamespacePrefixes() 80List<NamespaceDeclaration> _namespaceDeclarations = new List<NamespaceDeclaration>();
System\Xaml\Context\XamlContext.cs (1)
223public abstract IEnumerable<NamespaceDeclaration> GetNamespacePrefixes();
System\Xaml\Context\XamlParserContext.cs (2)
81public override IEnumerable<NamespaceDeclaration> GetNamespacePrefixes() 89foreach (NamespaceDeclaration namespaceDeclaration in frame.GetNamespacePrefixes())
System\Xaml\InfosetObjects\DeferredWriter.cs (1)
227public override void WriteNamespace(NamespaceDeclaration namespaceDeclaration)
System\Xaml\InfosetObjects\XamlNodes.cs (3)
74Debug.Assert(data is NamespaceDeclaration, "XamlNode ctor, NamespaceDeclaration data is not a NamespaceDeclaration"); 161public NamespaceDeclaration NamespaceDeclaration 167return (NamespaceDeclaration)_data;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
893public override void WriteNamespace(NamespaceDeclaration namespaceDeclaration)
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
288public override NamespaceDeclaration Namespace
System\Xaml\IXamlNamespaceResolver.cs (1)
12IEnumerable<NamespaceDeclaration> GetNamespacePrefixes();
System\Xaml\Parser\NamespacePrefixLookup.cs (3)
13private readonly List<NamespaceDeclaration> _newNamespaces; 15public NamespacePrefixLookup(out IEnumerable<NamespaceDeclaration> newNamespaces, Func<string, string> nsResolver) 17newNamespaces = _newNamespaces = new List<NamespaceDeclaration>();
System\Xaml\Parser\XamlPullParser.cs (2)
1035IEnumerable<NamespaceDeclaration> newNamespaces = null; 1040foreach (NamespaceDeclaration nsDecl in newNamespaces)
System\Xaml\ReaderBaseDelegate.cs (1)
37public override NamespaceDeclaration Namespace
System\Xaml\WriterDelegate.cs (1)
64public override void WriteNamespace(NamespaceDeclaration namespaceDeclaration)
System\Xaml\XamlBackgroundReader.cs (1)
288public override NamespaceDeclaration Namespace
System\Xaml\XamlMarkupExtensionWriter.cs (2)
169public override void WriteNamespace(NamespaceDeclaration namespaceDeclaration) 246public virtual void WriteNamespace(XamlMarkupExtensionWriter writer, NamespaceDeclaration namespaceDeclaration)
System\Xaml\XamlObjectReader.cs (2)
129public override NamespaceDeclaration Namespace 2581public bool TryHoistNamespaceDeclaration(NamespaceDeclaration namespaceDeclaration)
System\Xaml\XamlReader.cs (1)
18public abstract NamespaceDeclaration Namespace { get; }
System\Xaml\XamlSubreader.cs (1)
52public override NamespaceDeclaration Namespace
System\Xaml\XamlWriter.cs (1)
18public abstract void WriteNamespace(NamespaceDeclaration namespaceDeclaration);
System\Xaml\XamlXmlWriter.cs (14)
224public override void WriteNamespace(NamespaceDeclaration namespaceDeclaration) 809public virtual void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 956public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1005public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1131public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1243public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1437public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1482public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1531public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1603public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1663public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1709public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1753public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration) 1882public override void WriteNamespace(XamlXmlWriter writer, NamespaceDeclaration namespaceDeclaration)
System.Xaml.Tests (11)
Common\SubXamlReader.cs (2)
30public NamespaceDeclaration? NamespaceResult { get; set; } 31public override NamespaceDeclaration Namespace => NamespaceResult!;
System\Xaml\NamespaceDeclarationTests.cs (1)
17var declaration = new NamespaceDeclaration(ns, prefix);
System\Xaml\Schema\XamlTypeNameTests.cs (1)
512public IEnumerable<NamespaceDeclaration> GetNamespacePrefixes() => throw new NotImplementedException();
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (1)
334public IEnumerable<NamespaceDeclaration> GetNamespacePrefixes() => throw new NotImplementedException();
System\Xaml\XamlNodeListTests.cs (3)
423var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix"); 455var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix"); 487var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix");
System\Xaml\XamlNodeQueueTests.cs (2)
338var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix"); 369var namespaceDeclaration = new NamespaceDeclaration("namespace", "prefix");
System\Xaml\XamlWriterTests.cs (1)
157public override void WriteNamespace(NamespaceDeclaration namespaceDeclaration)