0

I have a SyleCop.Variable warning that I want to disable for my project:

BT1000 : StyleCop.Variable : Member variables should be prefixed by underscore followed by a lowercase letter.

It's about the following line of code:

private static readonly FilterContext FilterContext = new FilterContext(Filter.Test, null, 0, null);

The StyleCop suggests to be like this:

private static readonly FilterContext _filterContext = new FilterContext(Filter.Test, null, 0, null);

Which conflicts with the C# standards.

https://techwiki/gaming/index.php?title=CSharp_Standards

Do you know how a specific warning can be disable and ignored in the Visual Studio 2017 ?

sylvann
  • 132
  • 2
  • 2
  • 11

0 Answers0