Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Created August 3, 2015 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshVarty/4192a3aee8629e6a72ec to your computer and use it in GitHub Desktop.
Save JoshVarty/4192a3aee8629e6a72ec to your computer and use it in GitHub Desktop.
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(Analyzer1CodeFixProvider)), Shared]
public class Analyzer1CodeFixProvider : CodeFixProvider
{
private const string title = "Make uppercase";
public sealed override ImmutableArray<string> FixableDiagnosticIds
{
get { return ImmutableArray.Create(Analyzer1Analyzer.DiagnosticId); }
}
public sealed override FixAllProvider GetFixAllProvider()
{
return WellKnownFixAllProviders.BatchFixer;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment