Skip to main content

RCS9010: Specify ExportCodeRefactoringProviderAttribute.Name

Properties

PropertyValue
Default SeverityHidden
Minimum language version-

Examples

Example #1

diagnostic.cs
[ExportCodeRefactoringProvider(LanguageNames.CSharp)]
class FooCodeRefactoringProvider : CodeRefactoringProvider
{
}
fix.cs
[ExportCodeRefactoringProvider(LanguageNames.CSharp, Name = nameof(FooCodeRefactoringProvider))]
class FooCodeRefactoringProvider : CodeRefactoringProvider
{
}

Applies to