29 references to Parse
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
436var doc = XDocument.Parse(docComment);
dotnet-svcutil-lib (2)
Shared\MSBuildProj.cs (1)
171XDocument projDefinition = XDocument.Parse(projectText);
Shared\Utilities\RuntimeEnvironmentHelper.cs (1)
81var doc = XDocument.Parse(new StreamReader(stream).ReadToEnd());
Microsoft.AspNetCore.Authentication.Test (2)
OpenIdConnect\TestSettings.cs (2)
53var xdoc = XDocument.Parse(responseBody.Replace("doctype", "DOCTYPE")); 91var xdoc = XDocument.Parse(transaction.ResponseText.Replace("doctype", "DOCTYPE"));
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ServerStreamingServerCallHandlerTests.cs (2)
248var responseXml1 = XDocument.Parse(line1!); 255var responseXml2 = XDocument.Parse(line2!);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlAssert.cs (2)
21var sortedExpectedXDocument = SortAttributes(XDocument.Parse(expectedXml)); 22var sortedActualXDocument = SortAttributes(XDocument.Parse(actualXml));
Microsoft.AspNetCore.Mvc.FunctionalTests (7)
AsyncEnumerableTestBase.cs (1)
87var xml = XDocument.Parse(content);
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (2)
21var sortedExpectedXDocument = SortAttributes(XDocument.Parse(expectedXml)); 22var sortedActualXDocument = SortAttributes(XDocument.Parse(actualXml));
XmlDataContractSerializerFormattersWrappingTest.cs (2)
237var root = XDocument.Parse(content).Root; 279var root = XDocument.Parse(content).Root;
XmlSerializerFormattersWrappingTest.cs (2)
220var root = XDocument.Parse(content).Root; 262var root = XDocument.Parse(content).Root;
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
IISDeployer.cs (1)
311var config = XDocument.Parse(DeploymentParameters.ServerConfigTemplateContent ?? File.ReadAllText("IIS.config"));
IISExpressDeployer.cs (1)
286XDocument config = XDocument.Parse(serverConfig);
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
308document = XDocument.Parse($"<Task>{taskBody}</Task>");
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
SolutionGeneration.cs (1)
264var document = XDocument.Parse(CSharpProjectTemplate);
VisualStudioMSBuildWorkspaceTests.cs (1)
2495var document = XDocument.Parse(projectFileText);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\XmlDocumentationProviderTests.cs (1)
43var xmlDocument = XDocument.Parse(xml);
Microsoft.DotNet.Arcade.Sdk.Tests (1)
SourceMappingToNugetConfigTest.cs (1)
48XDocument document = XDocument.Parse(NUGET_CONFIG);
System.Private.Xml.Linq (6)
System\Xml\Linq\XDocument.cs (4)
162/// <see cref="XmlReader"/>. Note: Use <see cref="XDocument.Parse(string)"/> 164/// <seealso cref="XDocument.Parse(string)"/> 169/// <see cref="XDocument.Parse(string)"/> to create an <see cref="XDocument"/> from 172/// <seealso cref="XDocument.Parse(string)"/>
System\Xml\Linq\XElement.cs (2)
547/// <see cref="XmlReader"/>. Note: Use <see cref="XDocument.Parse(string)"/> 559/// <seealso cref="XDocument.Parse(string)"/>