如果一个类实现了接口中定义的方法,您可以选择是复制文档还是使用<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 文档更舒服)?类似于@inheritDoc
Java Doc 的东西?