Light.GuardClauses 1.3.0

A lightweight library for expressive Guard Clauses with conditional compilation in .NET.

Install-Package Light.GuardClauses -Version 1.3.0
dotnet add package Light.GuardClauses --version 1.3.0

Release Notes

New assertion methods for DateTime: MustBeUtc, MustBeLocal, and MustBeUnspecified.
New assertion methods for Uri: MustBeAbsoluteUri, and MustHaveScheme

New assertion methods that won't throw exceptions:
 - IsValidEnumValue,
 - IsEmpty (for GUIDs),
 - IsIn and IsNotIn (ranges),
 - IsNullOrEmpty (for collections and strings)
 - IsNullOrWhiteSpace (for strings)
 - IsSameAs (for object references)
 - ContainsOnlyLetters and ContainsOnlyLettersAndDigits (for strings)

Check out the history: https://github.com/feO2x/Light.GuardClauses/releases

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
3.3.0 26 8/15/2017
3.2.0 24 8/13/2017
3.1.0 32 8/6/2017
3.0.0 51 7/23/2017
2.0.0 152 5/29/2017
1.3.0 (current version) 62 4/12/2017
1.2.1 171 11/16/2016
1.2.0 145 7/25/2016
1.1.0 111 6/2/2016
1.0.0 92 6/1/2016
0.2.0 103 3/29/2016
0.1.0 94 3/23/2016
Show less