Click here to Skip to main content
15,887,175 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.
//                                  ~ J. J. ~

using System.Reflection;
using System.Runtime.CompilerServices;


[assembly: AssemblyTitle("Exceptions Test Suite Class Library")]
[assembly: AssemblyDescription("Exceptions Test Suite Class Library by Umbrae Research")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Umbrae Research")]
[assembly: AssemblyProduct("Exceptions Test Suite Class Library by Umbrae Research")]
[assembly: AssemblyCopyright("Copyright � 2004 Umbrae Research")]
[assembly: AssemblyTrademark("Umbrae and the Umbrae Research indicia are trademarks of Umbrae Research Ltd, est. 1996. All Rights Reserved.")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("0.9.*")]

[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(@"")]
[assembly: AssemblyKeyName("")]

//                                 ~ S. D. G. ~

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

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