How can I determine which exceptions can be thrown by a given method?

前端 未结 9 996
感情败类
感情败类 2020-11-30 22:41

My question is really the same as this one \"Finding out what exceptions a method might throw in C#\". However, I would really like to know if anyone knows of a way to deter

9条回答
  •  萌比男神i
    2020-11-30 23:21

    John Robbins had a series of articles on creating FxCop rules including an MSDN article that would indicate which exceptions were thrown. This was to warn about missing XML documentation for the exceptions but the idea would be the same.

提交回复
热议问题