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

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

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

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

Hope you find it useful

Leave a Reply