SA1623 : CSharp.Documentation : The property’s documentation summary text must begin with: Gets or sets

今天遇到的另一個StyleCop 警告是
SA1623 : CSharp.Documentation : The property’s documentation summary text must begin with: Gets or sets
SA1623 : CSharp.Documentation : The property's documentation summary text must begin with: Gets or sets

[csharp]
/// <summary>
/// <strong>Date Of Entry</strong>
/// </summary>
public string DOE { get; set; }

[/csharp]

解決方法
在 [Summary] 是要使用 “Gets or sets” 來開首的.. 即使大小寫不同也會出現上面的警告信息
E.G.

[csharp]
/// <summary>
///<strong> Gets or sets Date Of Entry</strong>
/// </summary>
public string DOE { get; set; }

[/csharp]

Hope you find it useful

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.