17 instantiations of XDeclaration
Aspire.Hosting.Maui (2)
Utilities\MauiEnvironmentHelper.cs (2)
141
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"), projectElement);
299
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"), projectElement);
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\GenerateBindingRedirects.cs (1)
339
new
XDeclaration
("1.0", "utf-8", "true"),
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (1)
Manifest.cs (1)
45
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"));
Microsoft.NET.Build.Tasks (2)
GenerateToolsSettingsFile.cs (1)
107
new
XDeclaration
(version: null, encoding: null, standalone: null),
WriteAppConfigWithSupportedRuntime.cs (1)
159
new
XDeclaration
("1.0", "utf-8", "true"),
Microsoft.NET.HostModel (1)
ComHost\RegFreeComManifest.cs (1)
43
XDocument manifestDocument = new XDocument(new
XDeclaration
("1.0", "UTF-8", "yes"), manifest);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
GeneratePackageAssetsTargetsFile.cs (1)
41
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"));
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
65
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"));
GenerateStaticWebAssetsPropsFile.cs (1)
131
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"));
Legacy\GenerateStaticWebAssetsPropsFile50.cs (1)
80
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"));
Legacy\GenerateV1StaticWebAssetsManifest.cs (1)
37
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"));
StaticWebAssetsGeneratePackagePropsFile.cs (1)
29
var document = new XDocument(new
XDeclaration
("1.0", "utf-8", "yes"));
NuGet.Commands (1)
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
233
new
XDeclaration
("1.0", "utf-8", "no"),
System.Private.Xml.Linq (3)
System\Xml\Linq\XDeclaration.cs (1)
75
return new
XDeclaration
(version, encoding, standalone);
System\Xml\Linq\XDocument.cs (2)
108
_declaration = new
XDeclaration
(other._declaration);
431
d.Declaration = new
XDeclaration
(reader);
73 references to XDeclaration
Microsoft.Extensions.AI.Abstractions.Tests (29)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
372
if (type == typeof(global::System.Xml.Linq.
XDeclaration
))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDeclaration.g.cs (25)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
>? _XDeclaration;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
> XDeclaration
24
get => _XDeclaration ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
>)Options.GetTypeInfo(typeof(global::System.Xml.Linq.
XDeclaration
));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
> Create_XDeclaration(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Xml.Linq.
XDeclaration
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Xml.Linq.
XDeclaration
>
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Xml.Linq.
XDeclaration
>(options, objectInfo);
58
DeclaringType = typeof(global::System.Xml.Linq.
XDeclaration
),
60
Getter = static obj => ((global::System.Xml.Linq.
XDeclaration
)obj).Encoding,
61
Setter = static (obj, value) => ((global::System.Xml.Linq.
XDeclaration
)obj).Encoding = value!,
68
AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.
XDeclaration
).GetProperty("Encoding", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::System.Xml.Linq.
XDeclaration
),
80
Getter = static obj => ((global::System.Xml.Linq.
XDeclaration
)obj).Standalone,
81
Setter = static (obj, value) => ((global::System.Xml.Linq.
XDeclaration
)obj).Standalone = value!,
88
AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.
XDeclaration
).GetProperty("Standalone", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::System.Xml.Linq.
XDeclaration
),
100
Getter = static obj => ((global::System.Xml.Linq.
XDeclaration
)obj).Version,
101
Setter = static (obj, value) => ((global::System.Xml.Linq.
XDeclaration
)obj).Version = value!,
108
AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.
XDeclaration
).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
118
private void XDeclarationSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Xml.Linq.
XDeclaration
? value)
128
writer.WriteString(PropName_Encoding, ((global::System.Xml.Linq.
XDeclaration
)value).Encoding);
129
writer.WriteString(PropName_Standalone, ((global::System.Xml.Linq.
XDeclaration
)value).Standalone);
130
writer.WriteString(PropName_Version, ((global::System.Xml.Linq.
XDeclaration
)value).Version);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocument.g.cs (3)
53
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.
XDeclaration
>
68
AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("Declaration", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.
XDeclaration
), global::System.Array.Empty<global::System.Type>(), null),
71
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.
XDeclaration
>(options, info0);
netstandard (1)
netstandard.cs (1)
2270
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
XDeclaration
))]
Shared.Tests (29)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
392
if (type == typeof(global::System.Xml.Linq.
XDeclaration
))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDeclaration.g.cs (25)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
>? _XDeclaration;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
> XDeclaration
24
get => _XDeclaration ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
>)Options.GetTypeInfo(typeof(global::System.Xml.Linq.
XDeclaration
));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
> Create_XDeclaration(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Xml.Linq.
XDeclaration
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.
XDeclaration
> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Xml.Linq.
XDeclaration
>
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Xml.Linq.
XDeclaration
>(options, objectInfo);
58
DeclaringType = typeof(global::System.Xml.Linq.
XDeclaration
),
60
Getter = static obj => ((global::System.Xml.Linq.
XDeclaration
)obj).Encoding,
61
Setter = static (obj, value) => ((global::System.Xml.Linq.
XDeclaration
)obj).Encoding = value!,
68
AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.
XDeclaration
).GetProperty("Encoding", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::System.Xml.Linq.
XDeclaration
),
80
Getter = static obj => ((global::System.Xml.Linq.
XDeclaration
)obj).Standalone,
81
Setter = static (obj, value) => ((global::System.Xml.Linq.
XDeclaration
)obj).Standalone = value!,
88
AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.
XDeclaration
).GetProperty("Standalone", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::System.Xml.Linq.
XDeclaration
),
100
Getter = static obj => ((global::System.Xml.Linq.
XDeclaration
)obj).Version,
101
Setter = static (obj, value) => ((global::System.Xml.Linq.
XDeclaration
)obj).Version = value!,
108
AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.
XDeclaration
).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
118
private void XDeclarationSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Xml.Linq.
XDeclaration
? value)
128
writer.WriteString(PropName_Encoding, ((global::System.Xml.Linq.
XDeclaration
)value).Encoding);
129
writer.WriteString(PropName_Standalone, ((global::System.Xml.Linq.
XDeclaration
)value).Standalone);
130
writer.WriteString(PropName_Version, ((global::System.Xml.Linq.
XDeclaration
)value).Version);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocument.g.cs (3)
53
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.
XDeclaration
>
68
AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("Declaration", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.
XDeclaration
), global::System.Array.Empty<global::System.Type>(), null),
71
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.
XDeclaration
>(options, info0);
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.
52
public XDeclaration(
XDeclaration
other)
69
internal static async Task<
XDeclaration
> CreateAsync(XmlReader r)
System\Xml\Linq\XDocument.cs (5)
29
private
XDeclaration
? _declaration;
70
/// with the specified <see cref="
XDeclaration
"/> and content.
90
public XDocument(
XDeclaration
? declaration, params object?[] content)
115
public
XDeclaration
? Declaration
479
d.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)
src\runtime\artifacts\obj\System.Xml.XDocument\Release\net11.0\System.Xml.XDocument.Forwards.cs (1)
11
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
XDeclaration
))]