Disable StyleCop for specific lines

后端 未结 5 632
無奈伤痛
無奈伤痛 2021-02-05 01:12

We\'re using StyleCop in our C# projects. In some cases we\'d like to avoid the rules though. I know you can add // in the beginning of the

5条回答
  •  借酒劲吻你
    2021-02-05 01:59

    You can put the piece of code between a region name Generated Code and it will be ommited.

提交回复
热议问题