是否有更新文檔的標準方法註釋反映子類的名稱而不是基類?另外,如果方法確實存在,這是我應該練習還是避免的?文檔評論(子類)
實施例:
class BaseClass
{
/// <summary>
/// Gets or sets a value associated with the name of the BaseClass
/// </summary>
protected string Name { get; set; }
}
class SubClass : BaseClass
{
/// Gets or sets a value associated with the name of the Subclass <-- updated
/// protected string Name { get; set; } <-- defined on BaseClass
}