是否有更新文档的标准方法注释反映子类的名称而不是基类?另外,如果方法确实存在,这是我应该练习还是避免的?文档评论(子类)
实施例:
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
}