382 references to CSharpAnalyzersResources
Microsoft.CodeAnalysis.CSharp.Features (382)
artifacts\obj\Microsoft.CodeAnalysis.CSharp.Features\Release\net8.0\Microsoft.CodeAnalysis.CSharp.CSharpAnalyzersResources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
CSharpAnalyzersResources
)));
CodeRefactorings\UseExplicitOrImplicitType\UseExplicitTypeCodeRefactoringProvider.cs (1)
27
=>
CSharpAnalyzersResources
.Use_explicit_type;
CodeRefactorings\UseExplicitOrImplicitType\UseImplicitTypeCodeRefactoringProvider.cs (1)
27
=>
CSharpAnalyzersResources
.Use_implicit_type;
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (1)
45
RegisterCodeFix(context,
CSharpAnalyzersResources
.Convert_to_Program_Main_style_program, nameof(ConvertToProgramMainCodeFixProvider), priority);
ConvertProgram\ConvertToProgramMainCodeRefactoringProvider.cs (2)
57
CSharpAnalyzersResources
.Convert_to_Program_Main_style_program,
59
nameof(
CSharpAnalyzersResources
.Convert_to_Program_Main_style_program),
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (1)
45
RegisterCodeFix(context,
CSharpAnalyzersResources
.Convert_to_top_level_statements, nameof(ConvertToTopLevelStatementsCodeFixProvider), priority);
ConvertProgram\ConvertToTopLevelStatementsCodeRefactoringProvider.cs (2)
60
CSharpAnalyzersResources
.Convert_to_top_level_statements,
62
nameof(
CSharpAnalyzersResources
.Convert_to_top_level_statements),
MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeRefactoringProvider.cs (2)
45
CSharpAnalyzersResources
.Make_local_function_static,
47
nameof(
CSharpAnalyzersResources
.Make_local_function_static)));
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (6)
27
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Add_braces),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
28
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Add_braces_to_0_statement),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (4)
19
NamespaceDeclarationPreference.BlockScoped => (
CSharpAnalyzersResources
.Convert_to_block_scoped_namespace, nameof(
CSharpAnalyzersResources
.Convert_to_block_scoped_namespace)),
20
NamespaceDeclarationPreference.FileScoped => (
CSharpAnalyzersResources
.Convert_to_file_scoped_namespace, nameof(
CSharpAnalyzersResources
.Convert_to_file_scoped_namespace)),
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (3)
22
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Convert_to_block_scoped_namespace),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (3)
22
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Convert_to_file_scoped_namespace),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToProgramMainDiagnosticAnalyzer.cs (3)
24
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Convert_to_Program_Main_style_program),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (3)
26
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Convert_to_top_level_statements),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (6)
27
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Convert_switch_statement_to_expression),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
28
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_switch_expression),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\ConvertTypeofToNameof\CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
18
private static readonly string s_title =
CSharpAnalyzersResources
.typeof_can_be_converted_to_nameof;
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (6)
42
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Inline_variable_declaration),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
43
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Variable_declaration_can_be_inlined),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (3)
32
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Delegate_invocation_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (6)
20
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Make_anonymous_function_static),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
21
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Anonymous_function_can_be_made_static),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (6)
21
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Make_local_function_static),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
22
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Local_function_can_be_made_static),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (6)
20
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Make_readonly_fields_writable),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
21
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Struct_contains_assignment_to_this_outside_of_constructor_Make_readonly_fields_writable),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (6)
28
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Make_member_readonly),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
29
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Member_can_be_made_readonly),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (6)
22
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Make_struct_readonly),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
23
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Struct_can_be_made_readonly),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs (9)
19
nameof(
CSharpAnalyzersResources
.Misplaced_using_directive),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
22
nameof(
CSharpAnalyzersResources
.Using_directives_must_be_placed_outside_of_a_namespace_declaration),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
31
nameof(
CSharpAnalyzersResources
.Using_directives_must_be_placed_inside_of_a_namespace_declaration),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (3)
24
nameof(
CSharpAnalyzersResources
.Blank_line_not_allowed_after_arrow_expression_clause_token),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (3)
24
nameof(
CSharpAnalyzersResources
.Blank_line_not_allowed_after_conditional_expression_token),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (3)
24
nameof(
CSharpAnalyzersResources
.Consecutive_braces_must_not_have_a_blank_between_them),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (3)
25
nameof(
CSharpAnalyzersResources
.Blank_line_not_allowed_after_constructor_initializer_colon),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (3)
24
nameof(
CSharpAnalyzersResources
.Embedded_statements_must_be_on_their_own_line),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (6)
20
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Remove_unnecessary_suppression_operator),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
21
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Suppression_operator_has_no_effect_and_can_be_misinterpreted),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (6)
26
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Remove_unnessary_discard),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
27
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Discard_can_be_removed),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryImports\CSharpRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (3)
27
: base(new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Using_directive_is_unnecessary),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (6)
36
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Remove_unnecessary_lambda_expression),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
37
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Lambda_expression_can_be_removed),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (6)
25
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Remove_redundant_nullable_directive),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
26
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Nullable_directive_is_redundant),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (6)
30
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Remove_unnecessary_nullable_directive),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
31
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Nullable_directive_is_unnecessary),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (3)
29
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Unreachable_code_detected),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (6)
30
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Property_pattern_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
31
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Simplify_property_pattern),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForAssignmentDiagnosticAnalyzer.cs (3)
18
: base(new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.if_statement_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (3)
19
: base(new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.if_statement_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (6)
28
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Deconstruct_variable_declaration),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
29
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Variable_declaration_can_be_deconstructed),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (6)
23
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Simplify_default_expression),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
24
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.default_expression_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForAccessorsHelper.cs (6)
22
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_accessor),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
23
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_accessor),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForConstructorsHelper.cs (6)
22
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_constructor),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
23
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_constructor),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForConversionOperatorsHelper.cs (6)
22
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_conversion_operator),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
23
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_conversion_operator),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (6)
26
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_indexer),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
27
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_indexer),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForLocalFunctionHelper.cs (6)
25
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_local_function),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
26
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_local_function),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (6)
25
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_method),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
26
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_method),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForOperatorsHelper.cs (6)
24
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_operator),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
25
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_operator),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (6)
26
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_property),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
27
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_property),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (6)
17
internal static readonly LocalizableString UseExpressionBodyTitle = new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_expression_body_for_lambda_expression),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
18
internal static readonly LocalizableString UseBlockBodyTitle = new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_block_body_for_lambda_expression),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (6)
26
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_new),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
27
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.new_expression_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseExplicitTypeDiagnosticAnalyzer.cs (6)
14
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_explicit_type),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
17
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_explicit_type_instead_of_var),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseImplicitTypeDiagnosticAnalyzer.cs (6)
14
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_implicit_type),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
17
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.use_var_instead_of_explicit_type),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (6)
50
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_index_operator),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
51
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Indexing_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (6)
48
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_range_operator),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
49
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
._0_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (3)
27
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_is_null_check),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsDiagnosticAnalyzer.cs (1)
17
: base(
CSharpAnalyzersResources
.Use_is_null_check)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (6)
23
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Prefer_null_check_over_type_check),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
24
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Null_check_can_be_clarified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (3)
49
nameof(
CSharpAnalyzersResources
.Use_local_function),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (3)
36
nameof(
CSharpAnalyzersResources
.Use_nameof),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (6)
25
private static readonly LocalizableResourceString s_safePatternTitle = new(nameof(
CSharpAnalyzersResources
.Use_pattern_matching),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
26
private static readonly LocalizableResourceString s_unsafePatternTitle = new(nameof(
CSharpAnalyzersResources
.Use_pattern_matching_may_change_code_meaning),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
));
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (3)
33
nameof(
CSharpAnalyzersResources
.Use_pattern_matching),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (3)
37
nameof(
CSharpAnalyzersResources
.Use_pattern_matching),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (3)
42
nameof(
CSharpAnalyzersResources
.Use_pattern_matching),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpUseNotPatternDiagnosticAnalyzer.cs (3)
32
nameof(
CSharpAnalyzersResources
.Use_pattern_matching),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (3)
58
nameof(
CSharpAnalyzersResources
.Use_primary_constructor),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (6)
57
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_simple_using_statement),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)),
58
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.using_statement_can_be_simplified),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (3)
44
nameof(
CSharpAnalyzersResources
.Use_System_Threading_Lock),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (3)
40
nameof(
CSharpAnalyzersResources
.Use_tuple_to_swap_values),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (3)
39
new LocalizableResourceString(nameof(
CSharpAnalyzersResources
.Use_Utf8_string_literal),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (2)
27
RegisterCodeFix(context,
CSharpAnalyzersResources
.Add_braces, nameof(
CSharpAnalyzersResources
.Add_braces));
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (2)
47
RegisterCodeFix(context,
CSharpAnalyzersResources
.Convert_switch_statement_to_expression, nameof(
CSharpAnalyzersResources
.Convert_switch_statement_to_expression));
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
40
RegisterCodeFix(context,
CSharpAnalyzersResources
.Inline_variable_declaration, nameof(
CSharpAnalyzersResources
.Inline_variable_declaration));
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
40
RegisterCodeFix(context,
CSharpAnalyzersResources
.Simplify_delegate_invocation, nameof(
CSharpAnalyzersResources
.Simplify_delegate_invocation));
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (2)
31
CSharpAnalyzersResources
.Make_anonymous_function_static,
32
nameof(
CSharpAnalyzersResources
.Make_anonymous_function_static),
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (2)
27
RegisterCodeFix(context,
CSharpAnalyzersResources
.Make_local_function_static, nameof(
CSharpAnalyzersResources
.Make_local_function_static));
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (2)
30
RegisterCodeFix(context,
CSharpAnalyzersResources
.Make_readonly_fields_writable, nameof(
CSharpAnalyzersResources
.Make_readonly_fields_writable));
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (2)
32
RegisterCodeFix(context,
CSharpAnalyzersResources
.Make_member_readonly, nameof(
CSharpAnalyzersResources
.Make_member_readonly));
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (2)
29
RegisterCodeFix(context,
CSharpAnalyzersResources
.Make_struct_readonly, nameof(
CSharpAnalyzersResources
.Make_struct_readonly));
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (3)
45
CSharpAnalyzersResources
.Warning_colon_Moving_using_directives_may_change_code_meaning);
76
CSharpAnalyzersResources
.Move_misplaced_using_directives,
78
nameof(
CSharpAnalyzersResources
.Move_misplaced_using_directives)),
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (2)
42
CSharpAnalyzersResources
.Remove_operator_preserves_semantics,
49
CSharpAnalyzersResources
.Negate_expression_changes_semantics,
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (2)
30
RegisterCodeFix(context,
CSharpAnalyzersResources
.Remove_unnessary_discard, nameof(
CSharpAnalyzersResources
.Remove_unnessary_discard));
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (2)
32
RegisterCodeFix(context,
CSharpAnalyzersResources
.Remove_unnecessary_lambda_expression, nameof(
CSharpAnalyzersResources
.Remove_unnecessary_lambda_expression));
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (4)
41
RegisterCodeFix(context,
CSharpAnalyzersResources
.Remove_redundant_nullable_directive, nameof(
CSharpAnalyzersResources
.Remove_redundant_nullable_directive), diagnostic);
43
RegisterCodeFix(context,
CSharpAnalyzersResources
.Remove_unnecessary_nullable_directive, nameof(
CSharpAnalyzersResources
.Remove_unnecessary_nullable_directive), diagnostic);
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (2)
34
RegisterCodeFix(context,
CSharpAnalyzersResources
.Simplify_property_pattern, nameof(
CSharpAnalyzersResources
.Simplify_property_pattern));
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (2)
35
RegisterCodeFix(context,
CSharpAnalyzersResources
.Deconstruct_variable_declaration, nameof(
CSharpAnalyzersResources
.Deconstruct_variable_declaration));
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (2)
30
RegisterCodeFix(context,
CSharpAnalyzersResources
.Simplify_default_expression, nameof(
CSharpAnalyzersResources
.Simplify_default_expression));
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (2)
54
CSharpAnalyzersResources
.Use_explicit_type_instead_of_var,
56
nameof(
CSharpAnalyzersResources
.Use_explicit_type_instead_of_var)),
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (2)
40
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_new, nameof(
CSharpAnalyzersResources
.Use_new));
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (2)
36
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_explicit_type_instead_of_var, nameof(
CSharpAnalyzersResources
.Use_explicit_type_instead_of_var));
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (2)
28
RegisterCodeFix(context,
CSharpAnalyzersResources
.use_var_instead_of_explicit_type, nameof(
CSharpAnalyzersResources
.use_var_instead_of_explicit_type));
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (2)
31
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_index_operator, nameof(
CSharpAnalyzersResources
.Use_index_operator));
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (2)
41
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_range_operator, nameof(
CSharpAnalyzersResources
.Use_range_operator));
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (2)
34
RegisterCodeFix(context,
CSharpAnalyzersResources
.Prefer_null_check_over_type_check, nameof(
CSharpAnalyzersResources
.Prefer_null_check_over_type_check));
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\UseIsNullCheckHelpers.cs (3)
16
?
CSharpAnalyzersResources
.Use_is_not_null_check
17
:
CSharpAnalyzersResources
.Use_is_object_check;
21
return
CSharpAnalyzersResources
.Use_is_null_check;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
47
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_local_function, nameof(
CSharpAnalyzersResources
.Use_local_function));
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (2)
31
CSharpAnalyzersResources
.Use_nameof,
32
nameof(
CSharpAnalyzersResources
.Use_nameof));
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (2)
65
isSafe ?
CSharpAnalyzersResources
.Use_pattern_matching :
CSharpAnalyzersResources
.Use_pattern_matching_may_change_code_meaning,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
35
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_pattern_matching, nameof(
CSharpAnalyzersResources
.Use_pattern_matching));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
35
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_pattern_matching, nameof(
CSharpAnalyzersResources
.Use_pattern_matching));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (2)
32
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_pattern_matching, nameof(
CSharpAnalyzersResources
.Use_pattern_matching));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (2)
30
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_pattern_matching, nameof(
CSharpAnalyzersResources
.Use_pattern_matching));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
64
CSharpAnalyzersResources
.Use_primary_constructor,
66
nameof(
CSharpAnalyzersResources
.Use_primary_constructor)),
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (2)
41
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_simple_using_statement, nameof(
CSharpAnalyzersResources
.Use_simple_using_statement));
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (2)
52
CSharpAnalyzersResources
.Use_System_Threading_Lock,
54
nameof(
CSharpAnalyzersResources
.Use_primary_constructor)),
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
32
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_tuple_to_swap_values, nameof(
CSharpAnalyzersResources
.Use_tuple_to_swap_values));
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
38
RegisterCodeFix(context,
CSharpAnalyzersResources
.Use_Utf8_string_literal, nameof(
CSharpAnalyzersResources
.Use_Utf8_string_literal));
UsePatternMatching\CSharpIsAndCastCheckWithoutNameCodeFixProvider.cs (2)
39
CSharpAnalyzersResources
.Use_pattern_matching,
41
nameof(
CSharpAnalyzersResources
.Use_pattern_matching),
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (3)
47
nameof(
CSharpAnalyzersResources
.Use_pattern_matching),
CSharpAnalyzersResources
.ResourceManager, typeof(
CSharpAnalyzersResources
)))