We should only use verbatim identifiers (identifiers prefixed with @) for keywords, like public, private, etc.
More info on identifiers in C#:
https://msdn.microsoft.com/en-us/library/aa664670%28VS.71%29.aspx
Before:
After:
Should work on any identifier (arguments, etc). Example:
namespace @ConsoleApplication3
{
class @Program
{
private string @b;
public event EventHandler @e;
static void Main(string[] args)
{
var @a = "";
}
public void @Foo()
{
}
public int @MyProperty { get; set; }
}
}
Diagnostic Id: CC0117
Category: Style
Severity: Info
We should only use verbatim identifiers (identifiers prefixed with
@) for keywords, likepublic,private, etc.More info on identifiers in C#:
https://msdn.microsoft.com/en-us/library/aa664670%28VS.71%29.aspx
Before:
After:
Should work on any identifier (arguments, etc). Example:
Diagnostic Id:
CC0117Category:
StyleSeverity:
Info