Use Custom Exceptions

When using Contract.Requires, we should always override the default exception, using something more appropriate (generally ArgumentNullException, ArgumentException, or InvalidOperationException). See this MSDN post for an explanation.

Last edited Dec 8, 2011 at 8:48 PM by sfuqua, version 4

Comments

No comments yet.