Invalid image

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

Version: 4.3.1
Author(s): Alessio Parma <alessio.parma@gmail.com>
Last Update: Sunday, December 10, 2017
.NET Fiddle:
Project Url: https://github.com/pomma89/Thrower
NuGet Url: https://www.nuget.org/packages/Thrower


Install
Install-Package Thrower
dotnet add package Z.EntityFramework.Plus.EF6
paket add Thrower
Thrower Download (Unzip the "nupkg" after downloading)

.NETFramework 3.5
  • No dependencies.
.NETFramework 4.0
  • No dependencies.
.NETFramework 4.5
  • No dependencies.
.NETStandard 1.0 .NETStandard 1.1 .NETStandard 1.3 .NETStandard 2.0 net461
  • No dependencies.
net471
  • No dependencies.
3 packages depend on this package.


Tags






STATS

must-have-score

8.1


avg-downloads-per-day

40


days-since-last-release

0