KoalaFingers.BasicGuards 1.0.0-beta

This is a prerelease version of KoalaFingers.BasicGuards.
There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package KoalaFingers.BasicGuards -Version 1.0.0-beta
dotnet add package KoalaFingers.BasicGuards --version 1.0.0-beta
<PackageReference Include="KoalaFingers.BasicGuards" Version="1.0.0-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KoalaFingers.BasicGuards --version 1.0.0-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KoalaFingers.BasicGuards, 1.0.0-beta"
#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 KoalaFingers.BasicGuards as a Cake Addin
#addin nuget:?package=KoalaFingers.BasicGuards&version=1.0.0-beta&prerelease

// Install KoalaFingers.BasicGuards as a Cake Tool
#tool nuget:?package=KoalaFingers.BasicGuards&version=1.0.0-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.Net Core

Basic guard clauses

A collection of basic guard clauses used to validate input parameters in C#.

Supported clauses

Here is a list of the supported clauses. More clauses will be added over time. Feel free to contribute with this repository.

IsNullOrWhitespace is used to validate string values against null or whitespace values.

public SampleConstructor(string stringValue)
{
    this.StringValue = stringValue.ThrowIfNullOrWhitespace();
}
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-beta2 178 6/14/2020
1.0.0-beta 181 6/14/2020

Add basic guard to validate if string is null or whitespace.