RCS9011: Specify ExportCodeFixProviderAttribute.Name
Properties
Property | Value |
---|---|
Default Severity | Hidden |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
[ExportCodeFixProvider(LanguageNames.CSharp)]
class FooCodeFixProvider : CodeFixProvider
{
}
fix.cs
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(FooCodeFixProvider))]
class FooCodeFixProvider : CodeFixProvider
{
}