A lightweight library for expressive Guard Clauses with conditional compilation in .NET.
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:
- 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
This package has no dependencies.