45 instantiations of XDocument
aspire (2)
Commands\AddCommand.cs (1)
344var configXml = new System.Xml.Linq.XDocument(
Projects\PrebuiltAppHostServer.cs (1)
904var doc = new XDocument(
Aspire.Hosting.Maui (2)
Utilities\MauiEnvironmentHelper.cs (2)
141var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement); 299var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement);
Aspire.Hosting.RemoteHost.Tests (1)
LayoutCommandTests.cs (1)
399var document = new XDocument(
illink (1)
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
41var xdoc = new XDocument(combined);
Infrastructure.Tests (1)
Shared\TestTrxBuilder.cs (1)
26var document = new XDocument(
Microsoft.AspNetCore.DataProtection (3)
XmlEncryption\XmlEncryptionExtensions.cs (3)
29var doc = new XDocument(new XElement(element)); 111var doc = new XDocument(new XElement(element)); 131var innerDoc = new XDocument(clonedElementWhichRequiresEncryption);
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
XmlComments\XmlComment.InheritDoc.cs (1)
381copy = new XDocument((XDocument)(object)node);
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\GenerateBindingRedirects.cs (1)
338document = new XDocument(
Microsoft.CodeAnalysis (1)
InternalUtilities\XmlUtilities.cs (1)
24copy = new XDocument(((XDocument)(object)node));
Microsoft.CodeAnalysis.Workspaces (2)
Log\WorkspaceStructureLogger.cs (1)
39var document = new XDocument();
Shared\Extensions\ISymbolExtensions.cs (1)
570copy = new XDocument(((XDocument)(object)node));
Microsoft.DotNet.HotReload.Watch (1)
HotReload\HotReloadDotNetWatcher.cs (1)
1156var doc = new XDocument(solutionElement);
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.SharedFramework.Sdk (1)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.XliffTasks (1)
Model\XlfDocument.cs (1)
48_document = new XDocument(
Microsoft.Extensions.AI.Abstractions.Tests (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocument.g.cs (1)
33ObjectCreator = () => new global::System.Xml.Linq.XDocument(),
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (1)
Manifest.cs (1)
45var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Microsoft.NET.Build.Tasks (2)
GenerateToolsSettingsFile.cs (1)
106return new XDocument(
WriteAppConfigWithSupportedRuntime.cs (1)
158new XDocument(
Microsoft.NET.HostModel (1)
ComHost\RegFreeComManifest.cs (1)
43XDocument manifestDocument = new XDocument(new XDeclaration("1.0", "UTF-8", "yes"), manifest);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
BlazorWriteSatelliteAssemblyFile.cs (1)
47var xDocument = new XDocument(root);
CreateBlazorTrimmerRootDescriptorFile.cs (1)
72return new XDocument(roots).Root.ToString();
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
GeneratePackageAssetsTargetsFile.cs (1)
41var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
65var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
GenerateStaticWebAssetsPropsFile.cs (1)
131var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Legacy\GenerateStaticWebAssetsPropsFile50.cs (1)
80var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Legacy\GenerateV1StaticWebAssetsManifest.cs (1)
37var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
StaticWebAssetsGeneratePackagePropsFile.cs (1)
29var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
NuGet.Commands (1)
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
232var doc = new XDocument(
NuGet.Configuration (1)
Settings\SettingsFile.cs (1)
211return new XDocument(configurationElement.AsXNode());
NuGet.PackageManagement (2)
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
36var document = new XDocument(new XElement(rootName));
Utility\XmlUtility.cs (1)
29var document = new XDocument(new XElement(rootName));
NuGet.Packaging (5)
PackageCreation\Authoring\Manifest.cs (1)
100new XDocument(
PackageCreation\Authoring\PackageBuilder.cs (3)
1162XDocument document = new XDocument( 1215XDocument document = new XDocument(element); 1235XDocument document = new XDocument(
PackagesConfigWriter.cs (1)
401var document = new XDocument();
Shared.Tests (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocument.g.cs (1)
33ObjectCreator = () => new global::System.Xml.Linq.XDocument(),
System.Private.Xml.Linq (2)
System\Xml\Linq\XDocument.cs (2)
494XDocument d = new XDocument(); 875return new XDocument(this);
835 references to XDocument
aspire (30)
Commands\AddCommand.cs (1)
344var configXml = new System.Xml.Linq.XDocument(
Commands\Sdk\IntegrationAssemblyNameResolver.cs (2)
25var document = XDocument.Load(projectFile.FullName);
Packaging\NuGetConfigMerger.cs (8)
14public required XDocument Document { get; init; } 175XDocument doc; 178doc = XDocument.Load(stream); 799private static async Task SaveConfigAsync(FileInfo nugetConfigFile, XDocument document) 838var doc = XDocument.Load(stream); 944XDocument doc; 947doc = XDocument.Load(stream);
Packaging\PackageChannel.cs (4)
456var document = XDocument.Load(stream); 761var document = XDocument.Load(stream);
Packaging\TemporaryNuGetConfig.cs (2)
130XDocument document; 133document = XDocument.Load(stream);
Projects\DotNetAppHostProject.cs (1)
257root = XDocument.Load(path).Root;
Projects\DotNetBasedAppHostServerProject.cs (7)
130private XDocument CreateProjectFile(IEnumerable<IntegrationReference> integrations) 172var doc = XDocument.Parse(template); 367var doc = CreateProjectFile(integrations); 481private void WriteScaffold(Dictionary<string, string> scaffold, XDocument projectDocument) 808var doc = XDocument.Load(versionsPropsPath);
Projects\FallbackProjectParser.cs (2)
74var doc = XDocument.Load(projectFile.FullName);
Projects\PrebuiltAppHostServer.cs (3)
479XDocument document; 486document = XDocument.Load(reader); 904var doc = new XDocument(
Aspire.Cli.EndToEnd.Tests (17)
CentralPackageManagementTests.cs (5)
317var appHostProject = XDocument.Load(appHostCsprojPath); 318var directoryPackagesProps = XDocument.Load(directoryPackagesPropsPath); 320static IEnumerable<XElement> FindRedisProperties(XDocument document, string propertyName)
CSharpProjectModeInitTests.cs (2)
99var nuGetConfigDoc = XDocument.Load(workspaceNuGetConfig);
EmulatedStagingBuildTests.cs (2)
260var doc = XDocument.Load(configPath);
EntityFrameworkCoreDeploymentTests.cs (2)
248var apiProject = XDocument.Load(apiProjectPath, LoadOptions.PreserveWhitespace);
Helpers\CliE2EAutomatorHelpers.cs (2)
654var document = XDocument.Load(versionsPropsPath);
Helpers\CliE2ETestHelpers.cs (4)
929var doc = XDocument.Load(versionsPropsPath); 956var doc = XDocument.Load(versionsPropsPath);
Aspire.Cli.Tests (128)
AssemblyMetadataChannelTests.cs (2)
44var doc = XDocument.Load(csprojPath);
Commands\InitCommandTests.cs (1)
2161var root = XDocument.Load(nugetConfigPath).Root ?? throw new InvalidOperationException("Empty NuGet.config.");
Commands\NewCommandTests.cs (7)
727var doc = XDocument.Load(Path.Combine(outputPath, "nuget.config")); 737private static string[] GetPackagePatternsForSource(XDocument doc, string source) 1204var document = XDocument.Load(nugetConfig.FullName); 2156var document = XDocument.Load(nugetConfigFile.FullName);
Packaging\NuGetConfigMergerSnapshotTests.cs (10)
73var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 135var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 196var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 255var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 319var updated = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
Packaging\NuGetConfigMergerTests.cs (24)
73var xml = XDocument.Load(targetConfigPath); 114var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 153var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 197var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 237var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 347var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 397var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 466var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 530var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 586var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 668var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config")); 718var xml = XDocument.Load(Path.Combine(root.FullName, "nuget.config"));
Packaging\PackagingServiceTests.cs (2)
1129var doc = XDocument.Load(nugetConfigPath);
Projects\AppHostServerProjectTests.cs (14)
153var doc = XDocument.Load(projectPath); 173var doc = XDocument.Load(projectPath); 195var document = XDocument.Load(projectPath); 223var document = XDocument.Load(projectPath); 404var projectDoc = XDocument.Parse(projectContent); 461var projectDoc = XDocument.Load(projectFilePath); 515var projectDoc = XDocument.Load(projectFilePath);
Projects\PrebuiltAppHostServerTests.cs (49)
373var doc = XDocument.Parse(xml); 393var doc = XDocument.Parse(xml); 416var doc = XDocument.Parse(xml); 432var doc = XDocument.Parse(xml); 442var doc = XDocument.Parse(xml); 455var doc = XDocument.Parse(xml); 469var doc = XDocument.Parse(xml); 480var doc = XDocument.Parse(xml); 492var doc = XDocument.Parse(xml); 504var doc = XDocument.Parse(xml); 524var doc = XDocument.Parse(xml); 537var doc = XDocument.Parse(xml); 558var doc = XDocument.Parse(xml); 760var doc = XDocument.Load(result.ConfigFile.FullName); 819var doc = XDocument.Load(result.ConfigFile.FullName); 879var doc = XDocument.Load(result.ConfigFile.FullName); 908var doc = XDocument.Load(result.ConfigFile.FullName); 937var doc = XDocument.Load(result.ConfigFile.FullName); 984var doc = XDocument.Load(result.ConfigFile.FullName); 1030var doc = XDocument.Load(result.ConfigFile.FullName); 1053var doc = XDocument.Load(result.ConfigFile.FullName); 1944XDocument? tempConfigDoc = null; 1964tempConfigDoc = XDocument.Load(argsList[nugetConfigIndex + 1]); 2091XDocument? generatedProject = null; 2108generatedProject = XDocument.Load(projectFilePath.FullName); 2238XDocument? generatedProject = null; 2249generatedProject = XDocument.Load(projectFilePath.FullName); 3011private static string[] GetPackagePatternsForSource(XDocument doc, string source)
Templating\TemplateNuGetConfigServiceTests.cs (19)
60var doc = XDocument.Load(Path.Combine(outputDirectory.FullName, "nuget.config")); 101var doc = XDocument.Load(Path.Combine(outputDirectory.FullName, "nuget.config")); 145var doc = XDocument.Load(Path.Combine(outputDirectory.FullName, "nuget.config")); 333var doc = XDocument.Load(nugetConfigFile.FullName); 392var doc = XDocument.Load(nugetConfigFile.FullName); 513var doc = XDocument.Load(nugetConfigFile.FullName); 1076private static string[] GetPackagePatternsForSource(XDocument doc, string source) 1125var doc = XDocument.Load(configPath); 1210var doc = XDocument.Load(configPath); 1268var doc = XDocument.Load(configPath);
Aspire.Dashboard (2)
Model\TextVisualizerViewModel.cs (2)
75var document = XDocument.Parse(text.Trim());
Aspire.Hosting.Java (4)
JavaHostingExtensions.cs (2)
2028var document = XDocument.Load(pomPath);
JavaVersionDetector.cs (2)
82XDocument document; 85document = XDocument.Load(pomPath);
Aspire.Hosting.Maui (2)
Utilities\MauiEnvironmentHelper.cs (2)
141var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement); 299var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), projectElement);
Aspire.Hosting.Maui.Tests (18)
MauiEnvironmentHelperTests.cs (18)
27var doc = XDocument.Parse(content); 42var doc = XDocument.Parse(content); 61var doc = XDocument.Parse(content); 78var doc = XDocument.Parse(content); 95var doc = XDocument.Parse(content); 120var doc = XDocument.Parse(content); 135var doc = XDocument.Parse(content); 154var doc = XDocument.Parse(content); 172var doc = XDocument.Parse(content);
Aspire.Hosting.RemoteHost (8)
AtsCapabilityScanner.cs (8)
1179var xmlDoc = LoadXmlDocumentation(type.Assembly); 1256XDocument? xmlDoc, 3336private static readonly ConcurrentDictionary<string, XDocument?> s_xmlDocCache = new(StringComparer.Ordinal); 3387public static XDocument? LoadXmlDocumentation(Assembly assembly) 3403return XDocument.Load(xmlPath); 3421public static string? GetXmlDocSummary(XDocument? xmlDoc, string memberName) 3443private static AtsDocumentationInfo? GetXmlDocumentation(XDocument? xmlDoc, string memberName, string? fallbackSummary = null) 3455private static XElement? FindXmlDocumentationMember(XDocument? xmlDoc, string memberName)
Aspire.Hosting.RemoteHost.Tests (13)
AtsCapabilityScannerTests.cs (12)
1024var doc = System.Xml.Linq.XDocument.Parse(""" 1043var doc = System.Xml.Linq.XDocument.Parse(""" 1062var doc = System.Xml.Linq.XDocument.Parse(""" 1081var doc = System.Xml.Linq.XDocument.Parse(""" 1103var doc = System.Xml.Linq.XDocument.Parse(""" 1124var first = AtsCapabilityScanner.LoadXmlDocumentation(assembly); 1125var second = AtsCapabilityScanner.LoadXmlDocumentation(assembly);
LayoutCommandTests.cs (1)
399var document = new XDocument(
Aspire.Hosting.Tests (2)
MSBuildTests.cs (2)
273var document = XDocument.Load(stream);
ConfigurationSchemaGenerator (2)
ConfigSchemaEmitter.cs (2)
436var doc = XDocument.Parse(docComment);
dotnet (4)
Commands\Run\CSharpCompilerCommand.cs (2)
418var frameworkList = XDocument.Load(frameworkListPath);
ToolPackage\ToolConfigurationDeserializer.cs (2)
28XDocument doc; 31doc = XDocument.Load(stream);
dotnet-svcutil-lib (6)
Shared\MSBuildProj.cs (4)
171XDocument projDefinition = XDocument.Parse(projectText); 428XDocument doc = XDocument.Load(filePath);
Shared\Utilities\RuntimeEnvironmentHelper.cs (2)
81var doc = XDocument.Parse(new StreamReader(stream).ReadToEnd());
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
18var projectDocument = XDocument.Load(projectPath, LoadOptions.PreserveWhitespace);
dotnet-user-secrets (2)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
18var projectDocument = XDocument.Load(projectPath, LoadOptions.PreserveWhitespace);
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
ILCompiler.Compiler (2)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (2)
64_document = XDocument.Load(xmlReader, LoadOptions.SetLineInfo).CreateNavigator(); 75_document = XDocument.Load(documentStream, LoadOptions.SetLineInfo).CreateNavigator();
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (2)
64_document = XDocument.Load(xmlReader, LoadOptions.SetLineInfo).CreateNavigator(); 75_document = XDocument.Load(documentStream, LoadOptions.SetLineInfo).CreateNavigator();
illink (2)
ILLink.Tasks (3)
CombineLinkerXmlFiles.cs (3)
33XDocument subFile = XDocument.Load(linkerXmlFile.ItemSpec); 41var xdoc = new XDocument(combined);
Infrastructure.Tests (6)
NuGetConfigTests.cs (2)
15var document = XDocument.Load(Path.Combine(RepoRoot.Path, "NuGet.config"));
Pipelines\NpmCliPackageTests.cs (3)
435var signingProps = XDocument.Parse(await ReadRepoFileAsync("eng/Signing.props")); 741private static void AssertScopedSigningRule(XDocument document, string elementName, string include, string certificateName)
Shared\TestTrxBuilder.cs (1)
26var document = new XDocument(
Microsoft.Arcade.Common (2)
NupkgInfoFactory.cs (2)
53XDocument doc = XDocument.Load(nuspecFileStream, LoadOptions.PreserveWhitespace);
Microsoft.AspNetCore.DataProtection (3)
XmlEncryption\XmlEncryptionExtensions.cs (3)
29var doc = new XDocument(new XElement(element)); 111var doc = new XDocument(new XElement(element)); 131var innerDoc = new XDocument(clonedElementWhichRequiresEncryption);
Microsoft.AspNetCore.OpenApi.SourceGenerators (9)
XmlComments\XmlComment.cs (6)
36var doc = XDocument.Parse(xml, LoadOptions.PreserveWhitespace | LoadOptions.SetLineInfo); 67private static void ResolveListTags(XDocument document) 98private static void ResolveCodeTags(XDocument document, string tagName, string codeBlockDelimiter) 112private static void ResolveParamRefTags(XDocument document) 145private static void ResolveParaTags(XDocument document)
XmlComments\XmlComment.InheritDoc.cs (3)
197var document = XDocument.Parse(inheritedDocumentation, LoadOptions.PreserveWhitespace); 381copy = new XDocument((XDocument)(object)node);
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\UrlRewriteFileParser.cs (2)
23var xmlDoc = XDocument.Load(reader, LoadOptions.SetLineInfo);
Microsoft.AspNetCore.Server.IntegrationTesting (4)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (2)
154var webConfig = XDocument.Load(webConfigFilePath);
xunit\IISExpressAncmSchema.cs (2)
31XDocument ancmConfig; 35ancmConfig = XDocument.Load(ancmConfigPath);
Microsoft.Build.Tasks.Core (13)
AssemblyDependency\GenerateBindingRedirects.cs (7)
70var doc = LoadAppConfig(AppConfigFile); 119var outputDoc = LoadAppConfig(outputAppConfigFile); 333private XDocument LoadAppConfig(ITaskItem appConfigItem) 335XDocument document; 350private XDocument LoadAppConfig(AbsolutePath appConfigFile) 352XDocument document; 356document = XDocument.Load(xr);
GenerateResource.cs (2)
3128XDocument doc = XDocument.Load(xmlReader, LoadOptions.PreserveWhitespace);
ResourceHandling\MSBuildResXReader.cs (2)
33XDocument doc = XDocument.Load(xmlReader, LoadOptions.PreserveWhitespace);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
353XDocument document; 359document = XDocument.Parse($"<Task>{taskBody}</Task>");
Microsoft.CodeAnalysis (9)
DocumentationComments\DocumentationCommentIncludeCache.cs (6)
16internal sealed class DocumentationCommentIncludeCache : CachingFactory<string, KeyValuePair<string, XDocument>> 35public XDocument GetOrMakeDocument(string resolvedPath) 49private static KeyValuePair<string, XDocument> MakeValue(XmlReferenceResolver resolver, string resolvedPath) 57var document = XDocument.Load(reader, LoadOptions.PreserveWhitespace | LoadOptions.SetLineInfo); 68private static bool KeyValueEquality(string resolvedPath, KeyValuePair<string, XDocument> pathAndDocument)
InternalUtilities\XmlUtilities.cs (1)
24copy = new XDocument(((XDocument)(object)node));
RuleSet\RuleSetProcessor.cs (2)
65XDocument? ruleSetDocument = null; 73ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ResourceStringsFormat.cs (2)
75var parsedDocument = XDocument.Parse(sourceTextStr, LoadOptions.PreserveWhitespace);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.CSharp (3)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (3)
92XDocument doc; 98doc = XDocument.Parse(unprocessed, LoadOptions.PreserveWhitespace); 337XDocument doc;
Microsoft.CodeAnalysis.NetAnalyzers (2)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
97var ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
AbstractResxGenerator.cs (1)
444foreach (var node in XDocument.Load(new SourceTextReader(text)).Descendants("data"))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (3)
173Dim doc As XDocument 177doc = XDocument.Parse(unprocessed, LoadOptions.PreserveWhitespace) 498Dim doc As XDocument
Microsoft.CodeAnalysis.Workspaces (7)
Log\WorkspaceStructureLogger.cs (4)
33public async Task<XDocument> BuildWorkspaceStructureAsync( 39var document = new XDocument(); 134var msbuildProject = XDocument.Load(project.FilePath, LoadOptions.None);
Shared\Extensions\ISymbolExtensions.cs (3)
391var document = XDocument.Parse(inheritedDocumentation.FullXmlFragment, LoadOptions.PreserveWhitespace); 570copy = new XDocument(((XDocument)(object)node));
Microsoft.DotNet.Arcade.Sdk (3)
src\ExtractNgenMethodList.cs (2)
53var document = XDocument.Load(IbcXmlFilePath);
src\GenerateResxSource.cs (1)
106foreach (var node in XDocument.Load(ResourceFile).Descendants("data"))
Microsoft.DotNet.Build.Tasks.Installers (12)
src\CreateWixBuildWixpack.cs (5)
219IngestDefineVariablesFromString(XDocument.Load(file).ToString()); 243XDocument xmlDocument = XDocument.Load(file); 534var doc = XDocument.Load(copiedXmlPath);
src\CreateWixCommandPackageDropBase.cs (3)
192XDocument doc = XDocument.Load(wixObjFilePath); 243private void ProcessXPath(XDocument doc, string xpath, string outputPath, XmlNamespaceManager nsmgr, int pathField1, int pathField2 = 0)
src\GenerateMacOSDistributionFile.cs (2)
39XDocument document = XDocument.Load(TemplatePath);
src\StabilizeWixFileId.cs (2)
52XDocument content = XDocument.Load(SourceFile);
Microsoft.DotNet.Build.Tasks.Packaging (4)
GenerateNuSpec.cs (2)
162var nuspec = XDocument.Load(memStream);
PackageIndex.cs (2)
216XDocument frameworkList = XDocument.Load(frameworkListPath);
Microsoft.DotNet.Build.Tasks.VisualStudio (3)
Vsix\FinalizeInsertionVsixFile.cs (3)
52var document = XDocument.Load(stream); 77internal void UpdateInstallationElement(XDocument document)
Microsoft.DotNet.Build.Tasks.Workloads (2)
Msi\WixDocument.cs (2)
17private XDocument _doc; 33_doc = XDocument.Load(path);
Microsoft.DotNet.HotReload.Watch (1)
HotReload\HotReloadDotNetWatcher.cs (1)
1156var doc = new XDocument(solutionElement);
Microsoft.DotNet.NuGetRepack.Tasks (6)
src\NuGetVersionUpdater.cs (4)
32public XDocument SpecificationXml { get; } 42XDocument specificationXml, 123XDocument nuspecXml = null; 138nuspecXml = XDocument.Load(nuspecStream);
src\ReplacePackageParts.cs (2)
131var nuspecXml = XDocument.Load(nuspecStream);
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.SharedFramework.Sdk (1)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
346var doc = new XDocument(new XElement(s_dgmlns + "DirectedGraph"));
Microsoft.DotNet.XliffTasks (7)
Model\TranslatableXmlDocument.cs (2)
15protected XDocument Document { get; private set; } 19Document = XDocument.Load(reader);
Model\XDocumentExtensions.cs (1)
16public static void SaveCustom(this XDocument document, TextWriter writer)
Model\XlfDocument.cs (2)
28private XDocument _document; 40_document = XDocument.Load(reader);
Tasks\TransformTemplates.cs (2)
72XDocument templateXml = XDocument.Load(templatePath);
Microsoft.Extensions.AI.Abstractions.Tests (44)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
376if (type == typeof(global::System.Xml.Linq.XDocument))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XAttribute.g.cs (3)
193var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 208AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 211properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info7);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocument.g.cs (31)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument>? _XDocument; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument> XDocument 24get => _XDocument ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument>)Options.GetTypeInfo(typeof(global::System.Xml.Linq.XDocument)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument> Create_XDocument(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Xml.Linq.XDocument>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Xml.Linq.XDocument> 37ConstructorAttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Xml.Linq.XDocument>(options, objectInfo); 58DeclaringType = typeof(global::System.Xml.Linq.XDocument), 60Getter = static obj => ((global::System.Xml.Linq.XDocument)obj).Declaration, 61Setter = static (obj, value) => ((global::System.Xml.Linq.XDocument)obj).Declaration = value!, 68AttributeProviderFactory = 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), 78DeclaringType = typeof(global::System.Xml.Linq.XDocument), 80Getter = static obj => ((global::System.Xml.Linq.XDocument)obj).DocumentType, 88AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("DocumentType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocumentType), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::System.Xml.Linq.XDocument), 100Getter = static obj => ((global::System.Xml.Linq.XDocument)obj).NodeType, 108AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("NodeType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.XmlNodeType), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::System.Xml.Linq.XDocument), 120Getter = static obj => ((global::System.Xml.Linq.XDocument)obj).Root, 128AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("Root", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XElement), global::System.Array.Empty<global::System.Type>(), null), 233var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 248AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 251properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info9); 298private void XDocumentSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Xml.Linq.XDocument? value) 309XDeclarationSerializeHandler(writer, ((global::System.Xml.Linq.XDocument)value).Declaration); 311XDocumentTypeSerializeHandler(writer, ((global::System.Xml.Linq.XDocument)value).DocumentType); 313global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::System.Xml.Linq.XDocument)value).NodeType, XmlNodeType); 315XElementSerializeHandler(writer, ((global::System.Xml.Linq.XDocument)value).Root);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocumentType.g.cs (3)
213var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 228AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 231properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info8);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XElement.g.cs (3)
313var info13 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 328AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 331properties[13] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info13);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XNode.g.cs (3)
113var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 128AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 131properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info3);
Microsoft.Extensions.FileProviders.Embedded (2)
Manifest\ManifestParser.cs (2)
36var document = XDocument.Load(stream);
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (3)
GenerateEmbeddedResourcesManifest.cs (1)
36var document = manifest.ToXmlDocument();
Manifest.cs (2)
43public XDocument ToXmlDocument() 45var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Microsoft.Maui.Resizetizer (6)
GeneratePackageAppxManifest.cs (3)
53 var appx = XDocument.Load(AppxManifest.ItemSpec); 69 void UpdateManifest(XDocument appx)
GenerateTizenManifest.cs (3)
65 var manifest = XDocument.Load(_tizenManifestFilePath); 81 void UpdateManifest(XDocument tizenManifest)
Microsoft.NET.Build.Extensions.Tasks (2)
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (2)
64var frameworkList = XDocument.Load(frameworkListPath);
Microsoft.NET.Build.Tasks (15)
GenerateToolsSettingsFile.cs (1)
41internal static XDocument GenerateDocument(string entryPointRelativePath, string commandName, string commandRunner, string runtimeIdentifier,
ResolveRuntimePackAssets.cs (2)
174XDocument frameworkListDoc = XDocument.Load(absoluteRuntimeListPath);
ResolveTargetingPackAssets.cs (3)
366XDocument frameworkListDoc = XDocument.Load(definition.FrameworkListPath); 456XDocument frameworkListDoc)
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (2)
64var frameworkList = XDocument.Load(frameworkListPath);
StoreArtifactParser.cs (2)
19var doc = XDocument.Load(filterFile);
WriteAppConfigWithSupportedRuntime.cs (5)
37XDocument doc = LoadAppConfig(AppConfigFile); 55XDocument doc, 152private XDocument LoadAppConfig(ITaskItem appConfigItem) 154XDocument document; 165document = XDocument.Load(appConfigPath.Value);
Microsoft.NET.HostModel (1)
ComHost\RegFreeComManifest.cs (1)
43XDocument manifestDocument = new XDocument(new XDeclaration("1.0", "UTF-8", "yes"), manifest);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (3)
BlazorReadSatelliteAssemblyFile.cs (2)
21var document = XDocument.Load(ReadFile.ItemSpec);
BlazorWriteSatelliteAssemblyFile.cs (1)
47var xDocument = new XDocument(root);
Microsoft.NET.Sdk.Publish.Tasks (16)
Tasks\GenerateEnvTransform.cs (6)
38XDocument templateContentDocument = XDocument.Parse(templateContent); 40XDocument? envTransformDoc = GenerateEnvTransformDocument(templateContentDocument, WebConfigEnvironmentVariables); 54public XDocument? GenerateEnvTransformDocument(XDocument templateContentDocument, string? webConfigEnvironmentVariables) 72XDocument updatedContent = templateContentDocument;
Tasks\TransformWebConfig.cs (3)
74XDocument? webConfigXml = null; 110webConfigXml = XDocument.Load(publishWebConfigPath); 128XDocument? transformedConfig = WebConfigTransform.Transform(
WebConfigTelemetry.cs (2)
29public static XDocument? AddTelemetry(XDocument? webConfig, string? projectGuid, bool ignoreProjectGuid, string? solutionFileFullPath, string? projectFileFullPath)
WebConfigTransform.cs (5)
10public static XDocument Transform(XDocument? webConfig, string appName, bool configureForAzure, bool useAppHost, string? extension, string? aspNetCoreModuleName, string? aspNetCoreHostingModel, string? environmentName, string? projectFullPath) 18webConfig = XDocument.Parse(WebConfigTemplate.Template); 246public static XDocument? AddProjectGuidToWebConfig(XDocument? document, string? projectGuid, bool ignoreProjectGuid)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (7)
GeneratePackageAssetsTargetsFile.cs (1)
41var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
65var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
GenerateStaticWebAssetsPropsFile.cs (1)
131var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Legacy\GenerateStaticWebAssetsPropsFile50.cs (1)
80var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Legacy\GenerateV1StaticWebAssetsManifest.cs (2)
37var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes")); 60private void PersistManifest(XDocument document, XmlWriterSettings settings)
StaticWebAssetsGeneratePackagePropsFile.cs (1)
29var document = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
Microsoft.TestPlatform.Build (2)
Tasks\TestTaskUtils.cs (2)
274XDocument document; 277document = XDocument.Load(settingsFile);
Microsoft.TestPlatform.CrossPlatEngine (2)
TestEngine.cs (2)
570XDocument document = XDocument.Parse(runsettings);
Microsoft.TestPlatform.TestHostRuntimeProvider (4)
Hosting\AppxManifestFile.cs (2)
21var doc = XDocument.Load(filePath);
Hosting\DefaultTestHostManager.cs (2)
588var doc = XDocument.Load(uwpSource);
netstandard (1)
netstandard.cs (1)
2271[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocument))]
NuGet.Build.Tasks (15)
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
NuGet.Commands (35)
RestoreCommand\MSBuildOutputFile.cs (2)
22public XDocument Content { get; } 24public MSBuildOutputFile(string path, XDocument content)
RestoreCommand\Utility\BuildAssetsUtils.cs (18)
93XDocument targetsXML = null; 94XDocument propsXML = null; 130public static XDocument GenerateMultiTargetFrameworkWarning() 132var doc = GenerateEmptyImportsFile(); 192XDocument doc, 203XDocument doc, 230public static XDocument GenerateEmptyImportsFile() 232var doc = new XDocument( 315public static XDocument GenerateMSBuildFile(List<MSBuildRestoreItemGroup> groups, ProjectStyle outputType) 317XDocument doc = null; 348public static void WriteXML(string path, XDocument doc) 386public static bool HasChanges(XDocument newFile, string path, ILogger log) 395var existing = ReadExisting(path, log); 399return !XDocument.DeepEquals(existing, newFile); 406public static XDocument ReadExisting(string path, ILogger log) 408XDocument result = null; 673var propsXML = GenerateMSBuildFile(props, request.ProjectStyle); 674var targetsXML = GenerateMSBuildFile(targets, request.ProjectStyle);
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
NuGet.Common (15)
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
NuGet.Configuration (20)
Settings\SettingsFile.cs (3)
53private readonly XDocument _xDocument; 116XDocument config = ExecuteSynchronized(() => 208private XDocument CreateDefaultConfig()
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
Utility\FileSystemUtility.cs (2)
16internal static XDocument GetOrCreateDocument(XDocument content, string fullPath)
NuGet.PackageManagement (28)
ConsoleProjectContext.cs (1)
27public XDocument OriginalPackagesConfig { get; set; }
EmptyNuGetProjectContext.cs (1)
31public XDocument OriginalPackagesConfig { get; set; }
FileModifiers\XmlTransformer.cs (2)
76var transformDocument = MSBuildNuGetProjectSystemUtility.GetOrCreateDocument(xmlFragment.Name, targetPath, projectSystem); 121var document = XmlUtility.GetOrCreateDocument(xmlFragment.Name,
INuGetProjectContext.cs (1)
53XDocument OriginalPackagesConfig { get; set; }
Projects\PackagesConfigNuGetProject.cs (3)
258public XDocument GetPackagesConfig() 278return XDocument.Load(stream); 328var xml = GetPackagesConfig();
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
Utility\MSBuildNuGetProjectSystemUtility.cs (2)
25internal static XDocument GetOrCreateDocument(XName rootName, string path, IMSBuildProjectSystem msBuildNuGetProjectSystem) 36var document = new XDocument(new XElement(rootName));
Utility\XmlUtility.cs (3)
13public static XDocument GetOrCreateDocument(XName rootName, string root, string path, INuGetProjectContext nuGetProjectContext) 27public static XDocument CreateDocument(XName rootName, string root, string path, INuGetProjectContext nuGetProjectContext) 29var document = new XDocument(new XElement(rootName));
NuGet.Packaging (47)
Core\NuspecCoreReader.cs (1)
27public NuspecCoreReader(XDocument xml)
Core\NuspecCoreReaderBase.cs (5)
20private readonly XDocument _xml; 67public NuspecCoreReaderBase(XDocument xml) 206public XDocument Xml 216private static XDocument LoadXml(Stream stream, bool leaveStreamOpen) 226return XDocument.Load(xmlReader, LoadOptions.None);
NuspecReader.cs (2)
81public NuspecReader(XDocument xml) 103public NuspecReader(XDocument xml, IFrameworkNameProvider frameworkProvider)
PackageCreation\Authoring\Manifest.cs (5)
123XDocument document; 131document = XDocument.Parse(content); 164private static string GetSchemaNamespace(XDocument document) 180private static void ValidateManifestSchema(XDocument document, string schemaNamespace) 210private static void CheckSchemaVersion(XDocument document)
PackageCreation\Authoring\ManifestReader.cs (1)
24public static Manifest ReadManifest(XDocument document)
PackageCreation\Authoring\PackageBuilder.cs (3)
1162XDocument document = new XDocument( 1215XDocument document = new XDocument(element); 1235XDocument document = new XDocument(
PackagesConfigReader.cs (4)
21private readonly XDocument _doc; 28public PackagesConfigReader(XDocument xml) 38public PackagesConfigReader(IFrameworkNameProvider frameworkMappings, XDocument xml) 92_doc = XDocument.Load(stream);
PackagesConfigWriter.cs (5)
27private XDocument _xDocument; 66_xDocument = XDocument.Load(stream); 110_xDocument = XDocument.Load(stream); 250public void UpdateOrAddPackageEntry(XDocument originalConfig, PackageReference newEntry) 401var document = new XDocument();
Rules\DependenciesGroupsForEachTFMRule.cs (1)
191var nuspec = packageNuspec.Xml;
Rules\InvalidUndottedFrameworkRule.cs (4)
46internal static IEnumerable<PackagingLogMessage> Validate(XDocument xml, IEnumerable<string> files) 143internal static IEnumerable<PackagingLogMessage> ValidateFrameworkAssemblies(XDocument xml, XElement metadataNode) 265private static XDocument LoadXml(Stream stream) 275return XDocument.Load(xmlReader, LoadOptions.None);
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (1)
35var nuspec = packageNuspec.Xml;
src\nuget-client\build\Shared\XmlUtility.cs (15)
13/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. 15/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 16/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 17internal static XDocument Load(string path) 23/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a file. Optionally, whitespace can be preserved. 25/// <param name="path">The complete file path to be read into a new <see cref="System.Xml.Linq.XDocument"/>.</param> 27/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified file.</returns> 28internal static XDocument Load(string path, LoadOptions options) 33return XDocument.Load(xmlReader, options); 37/// Creates a new <see cref="System.Xml.Linq.XDocument"/> from a stream. 40/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 41internal static XDocument Load(Stream input) 51/// <returns>An <see cref="System.Xml.Linq.XDocument"/> that contains the contents of the specified stream.</returns> 52internal static XDocument Load(Stream input, LoadOptions options) 56return XDocument.Load(reader, options);
NuGet.Protocol (11)
LegacyFeed\LegacyFeedCapabilityResourceV2Feed.cs (3)
70XDocument? document; 124public static DataServiceMetadata? Extract(XDocument schemaDocument) 172XDocument schemaDocument,
LegacyFeed\V2FeedParser.cs (7)
312private IEnumerable<V2FeedPackageInfo> ParsePage(XDocument doc, string? id, MetadataReferenceCache metadataCache) 448Task<XDocument?>? docRequest = LoadXmlAsync(uri, cacheKey, ignoreNotFounds, sourceCacheContext, log, token); 459var doc = await docRequest; 518internal async Task<XDocument?> LoadXmlAsync( 626internal static string? GetNextUrl(XDocument doc) 638internal static async Task<XDocument> LoadXmlAsync(Stream stream, CancellationToken token) 650return XDocument.Load(xmlReader, LoadOptions.None);
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (1)
506var doc = await V2FeedParser.LoadXmlAsync(httpSourceResult.Stream!, cancellationToken);
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (2)
98var ruleSetDocument = XDocument.Load(xmlReader);
sdk-tasks (6)
GetDependencyInfo.cs (2)
30XDocument document = XDocument.Load(VersionDetailsXmlFile);
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (4)
31var stage0Doc = XDocument.Load(Stage0BundledVersionsPath); 32var stage2Doc = XDocument.Load(Stage2BundledVersionsPath);
Shared.Tests (44)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (1)
396if (type == typeof(global::System.Xml.Linq.XDocument))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XAttribute.g.cs (3)
197var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 212AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 215properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info7);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocument.g.cs (31)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument>? _XDocument; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument> XDocument 24get => _XDocument ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument>)Options.GetTypeInfo(typeof(global::System.Xml.Linq.XDocument)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument> Create_XDocument(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Xml.Linq.XDocument>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Xml.Linq.XDocument> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::System.Xml.Linq.XDocument> 37ConstructorAttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::System.Xml.Linq.XDocument>(options, objectInfo); 58DeclaringType = typeof(global::System.Xml.Linq.XDocument), 60Getter = static obj => ((global::System.Xml.Linq.XDocument)obj).Declaration, 61Setter = static (obj, value) => ((global::System.Xml.Linq.XDocument)obj).Declaration = value!, 68AttributeProviderFactory = 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), 78DeclaringType = typeof(global::System.Xml.Linq.XDocument), 80Getter = static obj => ((global::System.Xml.Linq.XDocument)obj).DocumentType, 88AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("DocumentType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocumentType), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::System.Xml.Linq.XDocument), 100Getter = static obj => ((global::System.Xml.Linq.XDocument)obj).NodeType, 108AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("NodeType", InstanceMemberBindingFlags, null, typeof(global::System.Xml.XmlNodeType), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::System.Xml.Linq.XDocument), 120Getter = static obj => ((global::System.Xml.Linq.XDocument)obj).Root, 128AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XDocument).GetProperty("Root", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XElement), global::System.Array.Empty<global::System.Type>(), null), 234var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 249AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 252properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info9); 299private void XDocumentSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Xml.Linq.XDocument? value) 310XDeclarationSerializeHandler(writer, ((global::System.Xml.Linq.XDocument)value).Declaration); 312XDocumentTypeSerializeHandler(writer, ((global::System.Xml.Linq.XDocument)value).DocumentType); 314global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::System.Xml.Linq.XDocument)value).NodeType, XmlNodeType); 316XElementSerializeHandler(writer, ((global::System.Xml.Linq.XDocument)value).Root);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XDocumentType.g.cs (3)
216var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 231AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 234properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info8);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XElement.g.cs (3)
318var info13 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 333AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 336properties[13] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info13);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.XNode.g.cs (3)
114var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Xml.Linq.XDocument> 129AttributeProviderFactory = static () => typeof(global::System.Xml.Linq.XObject).GetProperty("Document", InstanceMemberBindingFlags, null, typeof(global::System.Xml.Linq.XDocument), global::System.Array.Empty<global::System.Type>(), null), 132properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Xml.Linq.XDocument>(options, info3);
System.Private.CoreLib.Generators (2)
NativeRuntimeEventSourceGenerator.cs (2)
36var manifest = XDocument.Parse(manifestText);
System.Private.Xml.Linq (137)
System\Xml\Linq\XContainer.cs (4)
20/// <see cref="XDocument"/> and <see cref="XElement"/>. 245settings.ConformanceLevel = this is XDocument ? ConformanceLevel.Document : ConformanceLevel.Fragment; 1386if (this is XDocument) 1419if (this is XDocument)
System\Xml\Linq\XDocument.cs (99)
17/// An <see cref="XDocument"/> can contain: 32/// Initializes a new instance of the <see cref="XDocument"/> class. 34/// <see cref="XDocument"/>, creating an <see cref="XDocument"/> with 36/// <see cref="XDocument"/> object. 39/// Initializes a new instance of the <see cref="XDocument"/> class. 46/// Initializes a new instance of the <see cref="XDocument"/> class with the specified content. 69/// Initializes a new instance of the <see cref="XDocument"/> class 97/// Initializes a new instance of the <see cref="XDocument"/> class from an 101/// The <see cref="XDocument"/> object that will be copied. 103public XDocument(XDocument other) 159/// <see cref="XDocument"/> and initializing it from a data source containing 162/// <see cref="XmlReader"/>. Note: Use <see cref="XDocument.Parse(string)"/> 163/// to create an <see cref="XDocument"/> from a string containing XML. 164/// <seealso cref="XDocument.Parse(string)"/> 167/// Create a new <see cref="XDocument"/> based on the contents of the file 169/// <see cref="XDocument.Parse(string)"/> to create an <see cref="XDocument"/> from 172/// <seealso cref="XDocument.Parse(string)"/> 180/// A URI string referencing the file to load into a new <see cref="XDocument"/>. 183/// An <see cref="XDocument"/> initialized with the contents of the file referenced 186public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri) 192/// Create a new <see cref="XDocument"/> based on the contents of the file 204/// A string representing the URI of the file to be loaded into a new <see cref="XDocument"/>. 210/// An <see cref="XDocument"/> initialized with the contents of the file referenced 214public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri, LoadOptions options) 224/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 229/// created <see cref="XDocument"/>. 232/// A new <see cref="XDocument"/> containing the contents of the passed in 235public static XDocument Load(Stream stream) 241/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 252/// created <see cref="XDocument"/>. 258/// A new <see cref="XDocument"/> containing the contents of the passed in 261public static XDocument Load(Stream stream, LoadOptions options) 271/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 282/// created <see cref="XDocument"/>. 291/// A new <see cref="XDocument"/> containing the contents of the passed in 294public static async Task<XDocument> LoadAsync(Stream stream, LoadOptions options, CancellationToken cancellationToken) 307/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 312/// created <see cref="XDocument"/>. 315/// A new <see cref="XDocument"/> containing the contents of the passed in 318public static XDocument Load(TextReader textReader) 324/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 335/// created <see cref="XDocument"/>. 341/// A new <see cref="XDocument"/> containing the contents of the passed in 344public static XDocument Load(TextReader textReader, LoadOptions options) 354/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using 365/// created <see cref="XDocument"/>. 374/// A new <see cref="XDocument"/> containing the contents of the passed in 377public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken) 390/// Create a new <see cref="XDocument"/> containing the contents of the 395/// <see cref="XDocument"/>. 398/// A new <see cref="XDocument"/> containing the contents of the passed 401public static XDocument Load(XmlReader reader) 407/// Create a new <see cref="XDocument"/> containing the contents of the 412/// <see cref="XDocument"/>. 418/// A new <see cref="XDocument"/> containing the contents of the passed 421public static XDocument Load(XmlReader reader, LoadOptions options) 427XDocument d = InitLoad(reader, options); 442/// Create a new <see cref="XDocument"/> containing the contents of the 447/// <see cref="XDocument"/>. 456/// A new <see cref="XDocument"/> containing the contents of the passed 459public static Task<XDocument> LoadAsync(XmlReader reader, LoadOptions options, CancellationToken cancellationToken) 464return Task.FromCanceled<XDocument>(cancellationToken); 468private static async Task<XDocument> LoadAsyncInternal(XmlReader reader, LoadOptions options, CancellationToken cancellationToken) 475XDocument d = InitLoad(reader, options); 492private static XDocument InitLoad(XmlReader reader, LoadOptions options) 494XDocument d = new XDocument(); 515/// Create a new <see cref="XDocument"/> from a string containing 519/// Create a new <see cref="XDocument"/> from a string containing 526/// An <see cref="XDocument"/> containing an XML tree initialized from the 529public static XDocument Parse(string text) 535/// Create a new <see cref="XDocument"/> from a string containing 553/// An <see cref="XDocument"/> containing an XML tree initialized from the 556public static XDocument Parse(string text, LoadOptions options) 569/// Output this <see cref="XDocument"/> to the passed in <see cref="Stream"/>. 574/// <see cref="XDocument.Save(Stream, SaveOptions)"/>) enabling 580/// The <see cref="Stream"/> to output this <see cref="XDocument"/> to. 588/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>. 617/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>. 653/// Output this <see cref="XDocument"/> to the passed in <see cref="TextWriter"/>. 658/// <see cref="XDocument.Save(TextWriter, SaveOptions)"/>) enabling 664/// The <see cref="TextWriter"/> to output this <see cref="XDocument"/> to. 672/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 691/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>. 702/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 727/// Outputs this <see cref="XDocument"/>'s underlying XML tree. The output can 732/// Output this <see cref="XDocument"/> to a file. 737/// <see cref="XDocument.Save(string, SaveOptions)"/>) enabling 751/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>. 765/// Output this <see cref="XDocument"/> to a file. 795/// Output this <see cref="XDocument"/>'s underlying XML tree to the 797/// <seealso cref="XDocument.Save(XmlWriter)"/> 801/// <see cref="XDocument"/>. 824/// Output this <see cref="XDocument"/>'s underlying XML tree to the 826/// <seealso cref="XDocument.Save(XmlWriter)"/> 830/// <see cref="XDocument"/>. 880XDocument? other = node as XDocument;
System\Xml\Linq\XElement.cs (6)
547/// <see cref="XmlReader"/>. Note: Use <see cref="XDocument.Parse(string)"/> 548/// to create an <see cref="XDocument"/> from a string containing XML. 549/// <seealso cref="XDocument.Load(string)" /> 559/// <seealso cref="XDocument.Parse(string)"/> 582/// <seealso cref="XDocument.Load(string, LoadOptions)"/> 2125if (node is XDocument) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document));
System\Xml\Linq\XNode.cs (4)
23/// <see cref="XDocument"/>, 594/// Two <see cref="XDocument"/>s are equal if their root nodes are equal. Two 700XDocument? n = this as XDocument;
System\Xml\Linq\XNodeEqualityComparer.cs (2)
31/// Two <see cref="XDocument"/>s are equal if their root nodes are equal. Two 70/// Two <see cref="XDocument"/>s are equal if their root nodes are equal. Two
System\Xml\Linq\XNodeReader.cs (7)
113if (o is XDocument) 294if (o.parent != null && o.parent.parent == null && o.parent is XDocument) 300if (_parent is XDocument) 849XDocument? d = _source as XDocument; 1184private bool ReadIntoDocument(XDocument d) 1261if (n.parent == null || (n.parent.parent == null && n.parent is XDocument))
System\Xml\Linq\XObject.cs (3)
47public XDocument? Document 54XDocument? doc = n as XDocument;
System\Xml\Linq\XText.cs (2)
87if (parent is XDocument) 113return parent is XDocument ?
System\Xml\Schema\XNodeValidator.cs (6)
49source = ((XDocument)source).Root!; 457/// Validate a <see cref="XDocument"/> 464public static void Validate(this XDocument source, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler) 470/// Validate a <see cref="XDocument"/> 477/// <param name="addSchemaInfo">If enabled the <see cref="XDocument"/> and the corresponding 480public static void Validate(this XDocument source, XmlSchemaSet schemas, ValidationEventHandler? validationEventHandler, bool addSchemaInfo)
System\Xml\XPath\XNodeNavigator.cs (4)
279XElement? root = ((XDocument)_source).Root; 366if ((TextMask & mask) != 0 && c.GetParent() == null && c is XDocument) 545if ((TextMask & mask) != 0 && container.GetParent() == null && container is XDocument) 931if (text.GetParent() is XDocument) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.Whitespace));
System.Xml.Linq (1)
System.Xml.Linq.cs (1)
13[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocument))]
System.Xml.XDocument (1)
src\runtime\artifacts\obj\System.Xml.XDocument\Release\net11.0\System.Xml.XDocument.Forwards.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XDocument))]