【发布时间】:2023-04-04 21:39:01
【问题描述】:
如果一个类实现了接口中定义的方法,您可以选择是复制文档还是使用<see cref="..." /> 引用它。
public interface IPerformer
{
/// <summary>
/// Do something useful.
/// </summary>
/// <param name="something">Object to do something with</param>
void Do(Something something);
}
public class Implementation : IPerformer
{
/// <copy from="IPerformer" /> # that is what I want!
public void Do(Something something)
{
// implementation ...
}
}
是否可以让 API 文档工具 (Sandcastle) 自动复制文档(如何让阅读 API 文档更舒适)? Java Doc 中的 @inheritDoc 之类的东西?
【问题讨论】:
标签: c# .net documentation sandcastle api-doc