I've been struggling lately with whether or not to check all the arguments for null or empty string. While many say that it's best practice, I've yet to actually see this done. While it might definitely make the entire framework far more debugging friendly, I wonder if it's worth the extra effort and expense.
Scott Wagner, a .Net Solutions Architect has come up with (what I believe) is a simple enough solution. An argument checker class provides a way to tie delegates to the type of argument to check. Checking the argument is accomplished by calling a static method and providing the argument name and error message in the event that the argument does not pass the check.
For the time though, I will not be trying to incorporate any approach until I've gotten further along in the development of the basic classes. This is partly because at this point, I'm trying to get a good deal of code up to standard and make sure it's passing general unit tests.
I would like to hear some feedback on this matter so please chime in.





