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.1.0 82 11/18/2018
6.0.0 56 11/10/2018
5.0.1 2,896 8/3/2018
5.0.0 134 7/29/2018
4.0.0 135 7/10/2018
3.5.0 462 9/3/2017
3.4.0 135 8/27/2017
3.3.0 313 8/15/2017
3.2.0 127 8/13/2017
3.1.0 133 8/6/2017
3.0.0 158 7/23/2017
2.0.0 398 5/29/2017
1.3.0 179 4/12/2017
1.2.1 292 11/16/2016
1.2.0 269 7/25/2016
1.1.0 211 6/2/2016
1.0.0 180 6/1/2016
0.2.0 198 3/29/2016
0.1.0 192 3/23/2016
Show less