Отключите StyleCop для определенных строк

Попытайтесь использовать глаголы в своих диалоговых окнах.

Это означает использование

alt text

вместо

alt text

36
задан stiank81 18 November 2009 в 10:09
поделиться

1 ответ

You can suppress rules by adding attributes to blocks of code. Here's a simple example on a class from the blog post linked below, but you can do it on various members individually:

[SuppressMessage("Microsoft.StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented")]
public class MyUndocumentedClass
{
    public void MyUndocumentedMethod {}
} 

There's a quick overview at an MSDN blog post and a fuller description of the attributes on MSDN.

36
ответ дан 27 November 2019 в 05:59
поделиться
Другие вопросы по тегам:

Похожие вопросы: