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
<PackageReference Include="Light.GuardClauses" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
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.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
7.0.0 724 7/13/2019
6.2.0 11,530 2/12/2019
6.1.0 1,314 11/18/2018
6.0.0 185 11/10/2018
5.0.1 14,313 8/3/2018
5.0.0 246 7/29/2018
4.0.0 253 7/10/2018
3.5.0 643 9/3/2017
3.4.0 237 8/27/2017
3.3.0 410 8/15/2017
3.2.0 238 8/13/2017
3.1.0 235 8/6/2017
3.0.0 272 7/23/2017
2.0.0 520 5/29/2017
1.3.0 286 4/12/2017
1.2.1 443 11/16/2016
1.2.0 447 7/25/2016
1.1.0 341 6/2/2016
1.0.0 314 6/1/2016
0.2.0 319 3/29/2016
0.1.0 313 3/23/2016
Show less