Base:
39 references to ToString
AnalyzerRunner (2)
Program.cs (2)
157description = diagnostic.Descriptor?.Title.ToString(); 160description = diagnostic.Descriptor?.MessageFormat.ToString();
ILLink.CodeFixProvider (3)
BaseAttributeCodeFixProvider.cs (1)
37 var codeFixTitle = CodeFixTitle.ToString ();
DynamicallyAccessedMembersCodeFixProvider.cs (2)
97 var codeFixTitle = CodeFixTitle.ToString (); 109 title: CodeFixTitle.ToString (),
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
357localizableString.ToString();
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
src\Features\DiagnosticsTestUtilities\CodeActions\CodeFixVerifierHelper.cs (2)
51Assert.NotEqual("", descriptor.Title?.ToString() ?? ""); 64Assert.NotEqual("", descriptor.MessageFormat?.ToString() ?? "");
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
724var title = descriptor.Title.ToString();
Microsoft.CodeAnalysis.CSharp.Features (5)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProviderExtensions.cs (1)
16var result = @this.ToString();
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (2)
125helper.UseExpressionBodyTitle.ToString(), 138helper.UseBlockBodyTitle.ToString(),
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (2)
174var title = UseExpressionBodyForLambdaHelpers.UseExpressionBodyTitle.ToString(); 184var title = UseExpressionBodyForLambdaHelpers.UseBlockBodyTitle.ToString();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
Diagnostics\DiagnosticServiceTests.vb (3)
616Dim expectedMessage = String.Format(OperationAnalyzer.Descriptor.MessageFormat.ToString(), actionKind) 849Dim expectedMessage = String.Format(StatefulCompilationAnalyzer.Descriptor.MessageFormat.ToString(), 1) 881Dim expectedMessage = String.Format(StatefulCompilationAnalyzer.Descriptor.MessageFormat.ToString(), 1)
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (1)
102string.Format(descriptor.MessageFormat.ToString(), "", e.Message));
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
565nameof(string.IsNullOrEmpty) => new LocalizableResourceString(nameof(FeaturesResources._0_cannot_be_null_or_empty), FeaturesResources.ResourceManager, typeof(FeaturesResources)).ToString(), 566nameof(string.IsNullOrWhiteSpace) => new LocalizableResourceString(nameof(FeaturesResources._0_cannot_be_null_or_whitespace), FeaturesResources.ResourceManager, typeof(FeaturesResources)).ToString(),
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\RudeEditDiagnosticDescription.cs (1)
69var format = descriptior.MessageFormat.ToString();
Microsoft.CodeAnalysis.Remote.Workspaces (1)
EditAndContinue\ManagedHotReloadLanguageService.cs (1)
266string.Format(descriptor.MessageFormat.ToString(), "", e.Message));
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticDescription.cs (1)
131_originalFormatSpecifiers = GetFormatSpecifiers(d.Descriptor.MessageFormat.ToString());
Microsoft.CodeAnalysis.UnitTests (15)
Diagnostics\DiagnosticLocalizationTests.cs (15)
73Assert.Equal<string>(fixedTitle, descriptor.Title.ToString()); 74Assert.Equal<string>(fixedMessageFormat, descriptor.MessageFormat.ToString()); 75Assert.Equal<string>(fixedDescription, descriptor.Description.ToString()); 92Assert.Equal(fixedTitle, localizableDiagnostic.Descriptor.Title.ToString()); 94Assert.Equal(fixedDescription, localizableDiagnostic.Descriptor.Description.ToString()); 117Assert.Equal(expected, localizableResource.ToString()); 282var title = localizableTitle.ToString(); 283var message = localizableMessage.ToString(); 284var description = localizableDescription.ToString(); 294var unused1 = localizableTitle.ToString(); 295var unused2 = localizableMessage.ToString(); 296var unused3 = localizableDescription.ToString(); 320unused1 = descriptors[0].Title.ToString(); 321unused2 = descriptors[0].MessageFormat.ToString(); 322unused3 = descriptors[0].Description.ToString();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
475Dim title = descriptor.Title.ToString()