【发布时间】:2012-02-17 13:07:44
【问题描述】:
我有以下公共接口
public interface Bar{
public void DoStuff();
}
带有内部后端类
internal class BarImpl : Bar{
public void DoStuff(){
// throw exception if invalid state
// do something
}
}
问题:
- 只有
BarImpl实现Bar接口。 -
BarImpl可以在DoStuff方法中抛出异常。
在Bar.DoStuff xml 文档中记录这些异常是否有意义?
提前致谢,
【问题讨论】:
标签: c# documentation-generation code-documentation