Light.GuardClauses 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Light.GuardClauses --version 1.3.0
NuGet\Install-Package Light.GuardClauses -Version 1.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: Light.GuardClauses, 1.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Light.GuardClauses as a Cake Addin
#addin nuget:?package=Light.GuardClauses&version=1.3.0

// Install Light.GuardClauses as a Cake Tool
#tool nuget:?package=Light.GuardClauses&version=1.3.0

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

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (20)

Showing the top 5 NuGet packages that depend on Light.GuardClauses:

Package Downloads
Updatedge.net

.net wrapper for updatedge API

Light.ViewModels

Simplify your XAML applications with Light.ViewModels!

Light.DependencyInjection

The DI Container you always wanted.

Synnotech.Migrations.Core

Core implementation of a generic migration engine that can be adapted to any target system.

Synnotech.Linq2Db

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Light.GuardClauses:

Repository Stars
ExtendedXmlSerializer/home
A configurable and eXtensible Xml serializer for .NET.
Version Downloads Last updated
10.0.0 42,659 12/6/2021
9.0.0 74,979 12/6/2020
8.1.0 41,237 5/27/2020
8.0.1 14,404 3/26/2020
8.0.0 443 3/25/2020
7.0.0 31,255 7/13/2019
6.2.0 17,483 2/12/2019
6.1.0 13,148 11/18/2018
6.0.0 710 11/10/2018
5.0.1 56,623 8/3/2018
5.0.0 1,016 7/29/2018
4.0.0 1,067 7/10/2018
3.5.0 1,866 9/3/2017
3.4.0 822 8/27/2017
3.3.0 1,020 8/15/2017
3.2.0 816 8/13/2017
3.1.0 825 8/6/2017
3.0.0 1,136 7/23/2017
2.0.0 1,136 5/29/2017
1.3.0 871 4/12/2017
1.2.1 1,465 11/16/2016
1.2.0 2,325 7/25/2016
1.1.0 1,212 6/2/2016
1.0.0 905 6/1/2016
0.2.0 914 3/29/2016
0.1.0 1,032 3/23/2016

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