Developing on Staxmanade

NuGet Project Uncovered: VerifyArgs

If you are coming to this series of posts for the first time you might check out my introductory post for a little context.

VerifyArgs is another approach to a guard helper that takes an interesting approach.

Verify.NotNullOrEmpty(new { first, second });
Verify.Positive(new { secondCount });



Many of you might look at the above and think “But what about performance?” If that’s you, I’d have to say go test it out for yourself. But for nearly all cases out there I don’t think this level of performance is anything to be concerned with. The project’s home site has a little blip that tries to address the performance concern.



image_thumb11_thumb



image_thumb13_thumb



This project is great because of the fluent nature of each Verify.***