阅读背景:

在C#中为抛出的异常自动生成XML文档

来源:互联网 

In C#, it is good practice to add XML documentation to describe any exceptions that a method can throw. It is not difficult to add these for exceptions that you throw yourself. However, if I'm calling another method, and I've decided not to handle an exception thrown by this second method, there's no point in me re-writing existing documentation. I need to find the documentation for this second method and copy & paste it into the documentation for my method. Worse still are Framework methods, where I find myself copy & pasting little chunks of text from MSDN into my documentation.In C#, it is good practice to add XML documenta




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: