Light.GuardClauses 1.3.0

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

There is a newer version of this package available.
See the version list below for details.
Install-Package Light.GuardClauses -Version 1.3.0
dotnet add package Light.GuardClauses --version 1.3.0
paket add Light.GuardClauses --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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
6.2.0 76 2/12/2019
6.1.0 860 11/18/2018
6.0.0 109 11/10/2018
5.0.1 4,786 8/3/2018
5.0.0 185 7/29/2018
4.0.0 184 7/10/2018
3.5.0 542 9/3/2017
3.4.0 168 8/27/2017
3.3.0 345 8/15/2017
3.2.0 159 8/13/2017
3.1.0 164 8/6/2017
3.0.0 198 7/23/2017
2.0.0 443 5/29/2017
1.3.0 210 4/12/2017
1.2.1 334 11/16/2016
1.2.0 301 7/25/2016
1.1.0 267 6/2/2016
1.0.0 223 6/1/2016
0.2.0 242 3/29/2016
0.1.0 224 3/23/2016
Show less