سؤال

Often methods in VB.Net throw exceptions. How can I write the code or documentary comments to allow possible exception throws to pop-up when the method is used in code? (Like the way a method's summary pops up.)

The point is to show the testers or other users of the method what exception(s) to expect.

هل كانت مفيدة؟

المحلول

You can use the <exception> tag in the XML documentation of a method.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top