Click here to Skip to main content
15,886,724 members
Articles / Programming Languages / C#

I take exception to that argument!

Rate me:
Please Sign up or sign in to vote.
4.55/5 (17 votes)
30 Dec 2004MIT5 min read 106.4K   957   35  
Achieve greater consistency in raising argument exceptions with very little effort. This utility class (which is covered by nearly 600 included NUnit test cases!) makes it possible to evaluate and raise exceptions on passed-in parameters, using a single line of code.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Architect NCite
United States United States
I’m part of a startup based in Houston, building products for law enforcement. I speak Ruby (since 2005), JavaScript (since 2005), and C# (since 2002).

Comments and Discussions