45 references to ToString
GenerateRulesMissingDocumentation (1)
Program.cs (1)
78var escapedTitle = descriptor.Title.ToString(CultureInfo.InvariantCulture).Replace("<", "\\<");
ILLink.CodeFixProvider (1)
UnconditionalSuppressMessageCodeFixProvider.cs (1)
48 var ruleTitle = diagnostic.Descriptor.Title.ToString (CultureInfo.CurrentUICulture);
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
41var title = Title.ToString(CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
41var title = Title.ToString(CultureInfo.InvariantCulture);
Microsoft.CodeAnalysis (11)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (2)
54var localizableMessageFormat = s_suppressionDiagnosticDescriptor.MessageFormat.ToString(formatProvider); 60_suppressionJustification.ToString(formatProvider));
CommandLine\SarifV1ErrorLogger.cs (2)
163string? shortDescription = descriptor.Title.ToString(_culture); 169string? fullDescription = descriptor.Description.ToString(_culture);
CommandLine\SarifV2ErrorLogger.cs (2)
244string? shortDescription = descriptor.Title.ToString(_culture); 252string? fullDescription = descriptor.Description.ToString(_culture);
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
94return _descriptor.MessageFormat.ToString(formatProvider); 97var localizedMessageFormat = _descriptor.MessageFormat.ToString(formatProvider);
Diagnostic\LocalizableString.cs (3)
39return localizableResource.ToString(null); 49return ToString(null); 54return ToString(formatProvider);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
369var messageFormat = _messageFormat.ToString(formatProvider);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
9618Assert.Contains(AnalyzerThatThrowsInGetMessage.Rule.MessageFormat.ToString(CultureInfo.InvariantCulture), output, StringComparison.Ordinal);
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (2)
62var title = includeTitle ? diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture) : null; 183var title = diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture);
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Data\AnalyzerSetting.cs (2)
41public string Title => _descriptor.Title.ToString(CultureInfo.CurrentUICulture); 42public string Description => _descriptor.Description.ToString(CultureInfo.CurrentUICulture);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
369var messageFormat = _messageFormat.ToString(formatProvider);
Microsoft.CodeAnalysis.UnitTests (15)
Diagnostics\DiagnosticLocalizationTests.cs (15)
53Assert.Equal(fixedTitle, descriptor.Title.ToString(arCulture)); 54Assert.Equal(fixedMessageFormat, descriptor.MessageFormat.ToString(arCulture)); 55Assert.Equal(fixedDescription, descriptor.Description.ToString(arCulture)); 78Assert.Equal<string>(fixedTitle, descriptor.Title.ToString(CustomResourceManager.DefaultCulture)); 79Assert.Equal<string>(fixedMessageFormat, descriptor.MessageFormat.ToString(CustomResourceManager.DefaultCulture)); 80Assert.Equal<string>(fixedDescription, descriptor.Description.ToString(CustomResourceManager.DefaultCulture)); 82Assert.Equal(localizedTitle, descriptor.Title.ToString(arCulture)); 83Assert.Equal(localizedMessageFormat, descriptor.MessageFormat.ToString(arCulture)); 84Assert.Equal(localizedDescription, descriptor.Description.ToString(arCulture)); 97Assert.Equal(fixedTitle, localizableDiagnostic.Descriptor.Title.ToString(CustomResourceManager.DefaultCulture)); 99Assert.Equal(fixedDescription, localizableDiagnostic.Descriptor.Description.ToString(CustomResourceManager.DefaultCulture)); 102Assert.Equal(localizedTitle, localizableDiagnostic.Descriptor.Title.ToString(arCulture)); 104Assert.Equal(localizedDescription, localizableDiagnostic.Descriptor.Description.ToString(arCulture)); 120Assert.Equal(expected, localizableResource.ToString(CustomResourceManager.DefaultCulture)); 125Assert.Equal(expected, localizableResource.ToString(arCulture));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
9062Assert.Contains(AnalyzerThatThrowsInGetMessage.Rule.MessageFormat.ToString(CultureInfo.InvariantCulture), output, StringComparison.Ordinal)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (2)
65Dim title = If(includeTitle, diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture), Nothing) 182Dim title = diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture)
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\DiagnosticData.cs (2)
242title: diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture), 243description: diagnostic.Descriptor.Description.ToString(CultureInfo.CurrentUICulture),
Microsoft.VisualStudio.LanguageServices (2)
TaskList\ProjectExternalErrorReporter.cs (2)
280title = descriptor.Title.ToString(CultureInfo.CurrentUICulture); 281description = descriptor.Description.ToString(CultureInfo.CurrentUICulture);
Mvc.Api.Analyzers.Test (1)
ApiConventionAnalyzerIntegrationTest.cs (1)
296Assert.Equal(string.Format(CultureInfo.InvariantCulture, descriptor.MessageFormat.ToString(CultureInfo.InvariantCulture), args), diagnostic.GetMessage(CultureInfo.InvariantCulture));