Thrower icon

Thrower - Compact preconditions helpers



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.

Info
- Last update: 9/24/2017
- Version: 4.2.3
- Project documentation: https://github.com/pomma89/Thrower
- Read more info on NuGet.org...

Dependencies
This package has 10 dependencies.
3 packages depend on this package.

Install
Install-Package Thrower
dotnet add package Thrower
paket add Thrower
Thrower Download (Unzip the "nupkg" after downloading)

Tags






STATS

must-have-score

8.8


avg-downloads-per-day

38


days-since-last-release

27