Information

Description
Fully managed library providing convenience methods to perform argument checks. Thrower allows to write preconditions in a pretty lean way, which reduces the clutter at the beginning of each method by removing the need to use the cumbersome 'if true then throw ex' required to validate parameters. For example, a validation against null becomes 'Raise.ArgumentNullException.IfIsNull(myParam)', while a generic validation may be written as 'Raise.ArgumentException.If(condition)'. Moreover, this library embeds a portable copy of Marc Gravell's FastMember and Jeffrey Stedfast's EmailValidation libraries.
Version
4.2.1
Project Url
https://github.com/pomma89/Thrower
View on NuGet: http://www.nuget.org/packages/Thrower

Authors

 

Installing with NuGet

PM> Install-Package Thrower -Version 4.2.1