716

Downloads

47

Downloads of v 1.3.0

1

Average downloads per day

2017-04-12

Last published

Share on Social Networks

Light.GuardClauses

1.3.0

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

To install Light.GuardClauses, run the following command in the Package Manager Console

Install-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

Owners

Authors

Kenny Pflug

Copyright

Copyright © 2017 Kenny Pflug

Tags

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
Light.GuardClauses 2.0.0 42 Monday, May 29, 2017
Light.GuardClauses 1.3.0 (this version) 47 Wednesday, April 12, 2017
Light.GuardClauses 1.2.1 150 Wednesday, November 16, 2016
Light.GuardClauses 1.2.0 127 Monday, July 25, 2016
Light.GuardClauses 1.1.0 95 Thursday, June 2, 2016
Light.GuardClauses 1.0.0 81 Wednesday, June 1, 2016
Light.GuardClauses 0.2.0 92 Tuesday, March 29, 2016
Light.GuardClauses 0.1.0 82 Wednesday, March 23, 2016