7 instantiations of XDeclaration
Aspire.Hosting.Maui (2)
Utilities\MauiEnvironmentHelper.cs (2)
146var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement); 301var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestAssembly.cs (1)
33new XDeclaration("1.0", "utf-8", "yes"),
Microsoft.VisualStudio.LanguageServices (1)
Snippets\SnippetExpansionClient.cs (1)
684new XDeclaration("1.0", "utf-8", null),
System.Private.Xml.Linq (3)
System\Xml\Linq\XDeclaration.cs (1)
75return new XDeclaration(version, encoding, standalone);
System\Xml\Linq\XDocument.cs (2)
108_declaration = new XDeclaration(other._declaration); 431d.Declaration = new XDeclaration(reader);
19 references to XDeclaration
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlAssert.cs (2)
38private static bool EqualDeclarations(XDeclaration expected, XDeclaration actual)
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (2)
38private static bool EqualDeclarations(XDeclaration expected, XDeclaration actual)
netstandard (1)
netstandard.cs (1)
2270[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDeclaration))]
System.Private.Xml.Linq (12)
System\Xml\Linq\XDeclaration.cs (7)
25/// Initializes a new instance of the <see cref="XDeclaration"/> class from the 46/// Initializes an instance of the <see cref="XDeclaration"/> class 47/// from another <see cref="XDeclaration"/> object. 50/// The <see cref="XDeclaration"/> used to initialize this <see cref="XDeclaration"/> object. 52public XDeclaration(XDeclaration other) 69internal static async Task<XDeclaration> CreateAsync(XmlReader r)
System\Xml\Linq\XDocument.cs (5)
29private XDeclaration? _declaration; 70/// with the specified <see cref="XDeclaration"/> and content. 90public XDocument(XDeclaration? declaration, params object?[] content) 115public XDeclaration? Declaration 479d.Declaration = await XDeclaration.CreateAsync(reader).ConfigureAwait(false);
System.Xml.Linq (1)
System.Xml.Linq.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDeclaration))]
System.Xml.XDocument (1)
artifacts\obj\System.Xml.XDocument\Debug\net11.0\System.Xml.XDocument.Forwards.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDeclaration))]