Base:
239 references to ToString
BuildBoss (1)
InternalsVisibleTo.cs (1)
49return element.ToString();
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
452var value = memberRoot?.Element("value")?.ToString();
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (2)
198Assert.Fail($"Parsing '{token.ValueText}' didn't throw an error for expected diagnostics: \r\n" + expectedDiagnostics.ToString().Replace(@"""", @"""""")); 260return element.ToString();
Microsoft.AspNetCore.Authentication.Test (3)
CookieTests.cs (1)
1899var xmlBytes = Encoding.UTF8.GetBytes(xml.ToString());
TestExtensions.cs (2)
60var xmlBytes = Encoding.UTF8.GetBytes(xml.ToString()); 77var xmlBytes = Encoding.UTF8.GetBytes(xml.ToString());
Microsoft.AspNetCore.DataProtection (1)
Repositories\RegistryXmlRepository.cs (1)
156RegistryKey.SetValue(valueName, element.ToString(), RegistryValueKind.String);
Microsoft.AspNetCore.DataProtection.Tests (5)
XmlAssert.cs (2)
38+ expected.ToString() + Environment.NewLine 40+ actual.ToString());
XmlEncryption\CertificateXmlEncryptionTests.cs (1)
52Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
XmlEncryption\DpapiNGXmlEncryptionTests.cs (1)
25Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
XmlEncryption\DpapiXmlEncryptionTests.cs (1)
27Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
UnaryServerCallHandlerTests.cs (3)
1137var requestContent = new XDocument(new XElement("name", "World")).ToString(); 1291var requestContent = new XDocument(new XElement("name", "World")).ToString(); 1321var requestContent = new XDocument(new XElement("name", "World")).ToString();
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
183Logger.LogTrace($"Config File Content:{Environment.NewLine}===START CONFIG==={Environment.NewLine}{{configContent}}{Environment.NewLine}===END CONFIG===", webConfig.ToString());
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
306serverConfig = config.ToString();
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\GenerateBindingRedirects.cs (3)
115if (outputDoc.ToString() == doc.ToString()) 315Log.LogWarningWithCodeFromResources("GenerateBindingRedirects.OverlappingBindingRedirect", entry.Key.ToString(), bindingRedirect.ToString());
CombineTargetFrameworkInfoProperties.cs (1)
57Result = root.ToString();
CombineXmlElements.cs (1)
43Result = root.ToString();
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
1179string encoded = new XText(value).ToString();
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (5)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (3)
97return diagnosticsElement.ToString(); 190NodeToElement(tree.Root)).ToString(); 212})).ToString();
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (2)
186Assert.False(true, "Expected diagnostics: \r\n" + expectedDiagnostics.ToString().Replace(@"""", @"""""")); 214return element.ToString();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
88var dump = DumpTypeInfo(module).ToString();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (8)
30Assert.Equal(baseLine.ToString(), dumpXML.ToString()); 34Assert.Equal(baseLine.ToString(), dumpXML.ToString()); 44Assert.Equal(baseLine.ToString(), dumpXML.ToString()); 48Assert.Equal(baseLine.ToString(), dumpXML.ToString());
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Options\NamingStyleTestUtilities.cs (1)
68return xml.ToString();
Microsoft.CodeAnalysis.Test.Utilities (4)
Assert\AssertXml.cs (4)
119assertText.AppendLine(firstMismatch.Item1.ToString()); 123assertText.AppendLine(firstMismatch.Item2.ToString()); 224? element1.ToString() == element2.ToString()
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SyntaxFactory.vb (1)
902Dim encoded As String = New XText(value).ToString()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (72)
src\Analyzers\VisualBasic\Tests\AddExplicitCast\AddExplicitCastTests_FixAllTests.vb (12)
193</Workspace>.ToString() 377</Workspace>.ToString() 567</Workspace>.ToString() 752</Workspace>.ToString() 942</Workspace>.ToString() 1127</Workspace>.ToString() 1232</Workspace>.ToString() 1332</Workspace>.ToString() 1437</Workspace>.ToString() 1537</Workspace>.ToString() 1642</Workspace>.ToString() 1742</Workspace>.ToString()
src\Analyzers\VisualBasic\Tests\GenerateConstructor\GenerateConstructorTests.vb (3)
1848</Workspace>.ToString(), 2191</Workspace>.ToString(), 2237</Workspace>.ToString(),
src\Analyzers\VisualBasic\Tests\ImplementAbstractClass\ImplementAbstractClassTests_FixAllTests.vb (11)
61</Workspace>.ToString() 118</Workspace>.ToString() 174</Workspace>.ToString() 239</Workspace>.ToString() 295</Workspace>.ToString() 368</Workspace>.ToString() 431</Workspace>.ToString() 503</Workspace>.ToString() 569</Workspace>.ToString() 635</Workspace>.ToString() 702</Workspace>.ToString()
src\Analyzers\VisualBasic\Tests\ImplementInterface\ImplementInterfaceTests_FixAllTests.vb (8)
59</Workspace>.ToString() 116</Workspace>.ToString() 172</Workspace>.ToString() 237</Workspace>.ToString() 293</Workspace>.ToString() 366</Workspace>.ToString() 429</Workspace>.ToString() 509</Workspace>.ToString()
src\Analyzers\VisualBasic\Tests\MakeFieldReadonly\MakeFieldReadonlyTests.vb (12)
111</Workspace>.ToString() 125</Workspace>.ToString() 173</Workspace>.ToString() 989</Workspace>.ToString() 1006</Workspace>.ToString() 1017</Workspace>.ToString() 1037</Workspace>.ToString() 1051</Workspace>.ToString() 1068</Workspace>.ToString() 1088</Workspace>.ToString() 1108</Workspace>.ToString() 1123</Workspace>.ToString()
src\Analyzers\VisualBasic\Tests\PopulateSwitch\PopulateSwitchStatementTests_FixAllTests.vb (6)
88</Workspace>.ToString() 169</Workspace>.ToString() 244</Workspace>.ToString() 316</Workspace>.ToString() 385</Workspace>.ToString() 459</Workspace>.ToString()
src\Analyzers\VisualBasic\Tests\QualifyMemberAccess\QualifyMemberAccessTests_FixAllTests.vb (2)
46</Workspace>.ToString() 78</Workspace>.ToString()
src\Analyzers\VisualBasic\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests_FixAllTests.vb (6)
86</Workspace>.ToString() 163</Workspace>.ToString() 235</Workspace>.ToString() 300</Workspace>.ToString() 372</Workspace>.ToString() 437</Workspace>.ToString()
src\Analyzers\VisualBasic\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests_FixAllTests.vb (8)
45</Workspace>.ToString() 74</Workspace>.ToString() 113</Workspace>.ToString() 139</Workspace>.ToString() 178</Workspace>.ToString() 201</Workspace>.ToString() 240</Workspace>.ToString() 279</Workspace>.ToString()
src\Analyzers\VisualBasic\Tests\UnsealClass\UnsealClassTests.vb (4)
163</Workspace>.ToString(), 182</Workspace>.ToString()) 204</Workspace>.ToString(), 221</Workspace>.ToString())
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (8)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (8)
87Dim sourceLines As String() = ExampleSource.ToString().Split(vbLf(0)) 202Dim sourceLines As String() = testSource.ToString().Split(vbLf(0)) 302Dim sourceLines As String() = testSource.ToString().Split(vbLf(0)) 370Dim sourceLines As String() = testSource.ToString().Split(vbLf(0)) 464Dim sourceLines As String() = testSource.ToString().Split(vbLf(0)) 569Dim sourceLines As String() = testSource.ToString().Split(vbLf(0)) 659Dim sourceLines As String() = testSource.ToString().Split(vbLf(0)) 756Dim sourceLines As String() = testSource.ToString().Split(vbLf(0))
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (35)
Diagnostics\Suppression\SuppressionTests.vb (4)
1581Await TestAsync(source.ToString(), expected) 1619Await TestAsync(source.ToString(), expected) 1666Await TestAsync(source.ToString(), expected) 1699Await TestAsync(source.ToString(), expected)
GenerateEvent\GenerateEventTests.vb (6)
613</Workspace>.ToString() 650</Workspace>.ToString() 689</Workspace>.ToString() 730</Workspace>.ToString() 770</Workspace>.ToString() 810</Workspace>.ToString()
PreferFrameworkType\PreferFrameworkTypeTests_FixAllTests.vb (8)
53</Workspace>.ToString() 94</Workspace>.ToString() 143</Workspace>.ToString() 184</Workspace>.ToString() 233</Workspace>.ToString() 274</Workspace>.ToString() 344</Workspace>.ToString() 406</Workspace>.ToString()
RemoveUnusedVariable\RemoveUnusedVariableTest.vb (2)
428</Workspace>.ToString() 457</Workspace>.ToString()
SimplifyThisOrMe\SimplifyThisOrMeTests.vb (5)
36Using workspace = CreateWorkspaceFromOptions(source.ToString(), parameters3) 170</Workspace>.ToString() 269</Workspace>.ToString() 308</Workspace>.ToString() 340</Workspace>.ToString()
SimplifyTypeNames\SimplifyTypeNamesTests.vb (2)
2340Using workspace = CreateWorkspaceFromOptions(source.ToString(), parameters) 2356Using workspace = CreateWorkspaceFromOptions(source.ToString(), parameters2)
SimplifyTypeNames\SimplifyTypeNamesTests_FixAllTests.vb (8)
55</Workspace>.ToString() 96</Workspace>.ToString() 144</Workspace>.ToString() 185</Workspace>.ToString() 233</Workspace>.ToString() 274</Workspace>.ToString() 392</Workspace>.ToString() 503</Workspace>.ToString()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (34)
DocumentationComments\DocCommentTests.vb (5)
7414Dim xmlFile = Temp.CreateFile(extension:=".xml").WriteAllText(xmlText.ToString) 7465Dim xmlFile = Temp.CreateFile(extension:=".xml").WriteAllText(xmlText.ToString) 7505Dim xmlFile = Temp.CreateFile(extension:=".xml").WriteAllText(xmlText.ToString) 7552Dim xmlFile = Temp.CreateFile(extension:=".xml").WriteAllText(xmlText.ToString) 7710xmlFile.WriteAllText(String.Format(xmlText.ToString, xmlFile.ToString))
SymbolDisplay\SymbolDisplayTests.vb (19)
3654Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 3697Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 3731Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 3792Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 3870Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 3910Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 3935Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 3960Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 3984Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4150Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4202Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4252Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4297Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4344Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4371code = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4416Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4472Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4613Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString 4798Dim code As String = DirectCast(text.FirstNode, XElement).FirstNode.ToString
SymbolsTests\Metadata\PE\LoadingNamespacesAndTypes.vb (8)
24Assert.Equal(dumpXML.ToString(), baseLine.ToString()) 28Assert.Equal(dumpXML.ToString(), baseLine.ToString()) 37Assert.Equal(dumpXML.ToString(), baseLine.ToString()) 41Assert.Equal(dumpXML.ToString(), baseLine.ToString())
SymbolsTests\Source\ComClassTests.vb (2)
248Dim expectedStr = expected.ToString().Trim() 249Dim actualStr = actual.ToString().Trim()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
TestSyntaxNodes.vb (4)
2866Dim tree = VisualBasicSyntaxTree.ParseText(SourceText.ToString) 2912Dim tree = VisualBasicSyntaxTree.ParseText(SourceText.ToString) 2956Dim tree = VisualBasicSyntaxTree.ParseText(SourceText.ToString) 3479Dim tree = VisualBasicSyntaxTree.ParseText(SourceText.ToString)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
ParserTestUtilities.vb (2)
240Assert.Equal(x1.ToString, x2.ToString)
Microsoft.CodeAnalysis.Workspaces (1)
Utilities\Documentation\XmlDocumentationProvider.cs (1)
80comments[e.Attribute("name").Value] = e.ToString();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
SolutionGeneration.cs (1)
308return document.ToString();
VisualStudioMSBuildWorkspaceTests.cs (1)
2502return document.ToString();
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeStyle\NamingStylePreferencesUpgradeTests.cs (1)
22return preferences.CreateXElement().ToString();
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
427string escapedTrimmedValue = new XElement("summary", value).ToString();
Microsoft.DotNet.Build.Tasks.Feed (1)
src\GenerateBuildManifest.cs (1)
151fileSystem.WriteToFile(OutputPath, buildModel.ToXml().ToString());
Microsoft.DotNet.Build.Tasks.Installers (1)
src\StabilizeWixFileId.cs (1)
80string.Join(", ", matchingFileElements.Select(e => e.ToString())));
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (3)
Vsix\FinalizeInsertionVsixFile.cs (3)
37", manifestXml.ToString()); 90", manifestXml.ToString()); 124", manifestXml.ToString());
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
261File.WriteAllText(TargetFile, frameworkManifest.ToString());
Microsoft.DotNet.SourceBuild.Tasks (4)
src\UsageReport\ValidateUsageAgainstBaseline.cs (2)
63File.WriteAllText(OutputBaselineFile, ReviewRequestComment + PreBuiltDocXmlComment + Environment.NewLine + data.ActualUsageData.ToXml().ToString()); 66File.WriteAllText(OutputReportFile, PreBuiltDocXmlComment + Environment.NewLine + data.Report.ToString());
src\UsageReport\WritePackageUsageData.cs (1)
255File.WriteAllText(DataFile, data.ToXml().ToString());
src\UsageReport\WriteUsageReports.cs (1)
163report.ToString());
Microsoft.DotNet.SourceBuild.Tasks.Tests (2)
ValidateUsageAgainstBaselineTests.cs (2)
44.ToString(), 45data.Report.ToString());
Microsoft.DotNet.VersionTools (2)
BuildManifest\BuildManifestClient.cs (2)
87Contents = build.ToXml().ToString() 188Contents = modifiedModelXml.ToString()
Microsoft.DotNet.VersionTools.Tests (3)
BuildManifest\BuildManifestClientTests.cs (3)
68objects[0].Content == build.ToXml().ToString() && 107string fakeExistingBuildString = fakeExistingBuild.ToXml().ToString(); 185.ReturnsAsync(() => fakeNewExistingBuild.ToXml().ToString());
Microsoft.Extensions.SecretManager.Tools.Tests (2)
InitCommandTest.cs (2)
106var lineCountWithoutSecret = projectDocumentWithoutSecret.ToString().Split(Environment.NewLine).Length; 111var lineCountWithSecret = projectDocumentWithSecret.ToString().Split(Environment.NewLine).Length;
Microsoft.ML.Maml (1)
HelpCommand.cs (1)
490File.WriteAllText(_xmlFilename, content.ToString());
Microsoft.VisualStudio.LanguageServices (2)
Options\VisualStudioSettingsOptionPersister.cs (2)
201value = codeStyleOption.ToXElement().ToString(); 206value = namingStyle.CreateXElement().ToString();
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
1418foreach (var line in child.ToString().Split(new[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries))
Roslyn.Test.PdbUtilities (7)
Reader\PdbValidation.cs (7)
121VerifyPdb(diff, methodTokens, expectedPdb.ToString(), format, expectedValueSourceLine, expectedValueSourcePath, expectedIsRawXml: true); 218expectedPdb.ToString(), 306var actualPdb = XElement.Parse(PdbToXmlConverter.ToXml(pdbStream, peStream, pdbToXmlOptions, methodName: qualifiedMethodName)).ToString(); 345var actualConverted = AdjustForConversionArtifacts(XElement.Parse(PdbToXmlConverter.ToXml(pdbStreamConverted, peStreamOriginal, pdbToXmlOptions, methodName: qualifiedMethodName)).ToString()); 391return xml.ToString(); 425return (actualXml.ToString(), expectedXml.ToString());
Roslyn.VisualStudio.Next.UnitTests (4)
Options\VisualStudioSettingsOptionPersisterTests.cs (4)
95optionType == typeof(NamingStylePreferences) ? (s_nonDefaultNamingStylePreferences, s_nonDefaultNamingStylePreferences.CreateXElement().ToString()) : 96optionType == typeof(CodeStyleOption2<bool>) ? (new CodeStyleOption2<bool>(false, NotificationOption2.Warning), new CodeStyleOption2<bool>(false, NotificationOption2.Warning).ToXElement().ToString()) : 265yield return new object?[] { value1, value1.ToXElement().ToString(), new CodeStyleOption2<int>(0, NotificationOption2.None), typeof(CodeStyleOption2<int>) }; 268yield return new object?[] { value2, value2.CreateXElement().ToString(), NamingStylePreferences.Empty, typeof(NamingStylePreferences) };
Stress.ApiService (1)
Program.cs (1)
198var xmlWithUrl = new XElement(new XElement("url", "http://localhost:8080")).ToString();