In this recipe, we will see how to create our own custom rules for the StyleCop engine. We will also see how to add parameters to this rule.
For this recipe, you will need to have:
In the early days of StyleCop, lots of the rules chosen by Microsoft were criticized. One of them was the fact that the developer couldn't add an underscore at the beginning of their private instance fields. In this recipe, we will take this rule as an example and try to implement it at the beginning of non public instance fields.
This rule directly conflicts with the following StyleCop rules:
SA1306: Variable names and private field names must start with a lower-case ...