Ensure.That 7.0.0-pre43

This is a prerelease version of Ensure.That.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Ensure.That --version 7.0.0-pre43                
NuGet\Install-Package Ensure.That -Version 7.0.0-pre43                
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="Ensure.That" Version="7.0.0-pre43" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ensure.That --version 7.0.0-pre43                
#r "nuget: Ensure.That, 7.0.0-pre43"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Ensure.That as a Cake Addin
#addin nuget:?package=Ensure.That&version=7.0.0-pre43&prerelease

// Install Ensure.That as a Cake Tool
#tool nuget:?package=Ensure.That&version=7.0.0-pre43&prerelease                

Using contextual validation

This flavour was introduced in the v7.0.0 release.

Ensure.String.IsNotNullOrWhiteSpace(myString);
Ensure.String.IsNotNullOrWhiteSpace(myString, nameof(myArg));

the value is passed through so that you e.g. can assign it to a field:

_field1 = Ensure.String.IsNotNullOrWhiteSpace(myString);
_field2 = Ensure.String.IsNotNullOrWhiteSpace(myString, nameof(myArg));

Using static simple methods

The EnsureArg flavour was added in the v5.0.0 release.

EnsureArg.IsNotNullOrWhiteSpace(myString);
EnsureArg.IsNotNullOrWhiteSpace(myString, nameof(myArg));

the value is passed through so that you e.g. can assign it to a field:

_field1 = EnsureArg.IsNotNullOrWhiteSpace(myString);
_field2 = EnsureArg.IsNotNullOrWhiteSpace(myString, nameof(myArg));

Turn On/Off - default is On

Could be used with different profiles. Like Debug and CI is On while Release is Off.

#if RELEASE
    Ensure.Off()
#endif
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.1 is compatible.  netstandard1.2 was computed.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 was computed.  net451 is compatible.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5.1

    • No dependencies.
  • .NETStandard 1.1

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (136)

Showing the top 5 NuGet packages that depend on Ensure.That:

Package Downloads
Ark.Tools.Core

Core language tools or utilities over dependencies

PMoney.Inventory

Consumes a generic inventory document store to be used in PMoney applications.

iGamingCloud.SDK

This SDK is meant to help .NET developers integrate with the iGamingCloud API

Zapp

Zapp is a Windows process orchestrator for packed apps.

OneBeyond.Studio.Crosscuts

Package Description

GitHub repositories (12)

Showing the top 5 popular GitHub repositories that depend on Ensure.That:

Repository Stars
Ombi-app/Ombi
Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
microsoft/dicom-server
OSS Implementation of DICOMweb standard
draphyz/DDD
Domain-Driven Design example
microsoft/Tools-for-Health-Data-Anonymization
Set of tools for helping with data (in FHIR format) anonymization.
tugberkugurlu/AspNetCore.Identity.MongoDB
MongoDB Data Store Adaptor for ASP.NET Core Identity
Version Downloads Last updated
11.0.0-p3 186,245 10/27/2021
11.0.0-p2 1,923 10/18/2021
11.0.0-p1 20,080 7/6/2021
10.1.0 6,428,155 4/4/2021
10.1.0-p1 1,218 3/31/2021
10.0.0 147,931 2/22/2021
9.2.0 1,416,393 6/7/2020
9.1.0 17,458 6/4/2020
9.0.1 218,149 4/29/2020
8.1.2 783,442 11/15/2019
8.1.1 1,614,238 1/7/2019
8.1.0 217,628 11/10/2018
8.0.0 732,448 4/29/2018
8.0.0-pre78 2,173 2/17/2018
8.0.0-pre71 2,043 2/14/2018
7.2.1 200,304 12/29/2017
7.2.0 27,431 12/14/2017
7.1.0 41,110 11/19/2017
7.1.0-pre50 2,308 11/15/2017
7.0.0 6,967 11/9/2017
7.0.0-pre43 2,231 11/9/2017
7.0.0-pre38 2,316 11/9/2017
7.0.0-pre37 2,267 10/31/2017
7.0.0-pre32 17,644 10/16/2017
7.0.0-pre24 2,535 9/27/2017
6.0.1 20,956 10/4/2017
6.0.1-pre28 2,012 10/3/2017
6.0.0 14,433 9/19/2017
6.0.0-pre18 2,091 9/14/2017
6.0.0-pre16 2,159 9/10/2017
6.0.0-pre15 2,089 9/10/2017
6.0.0-pre12 2,042 9/9/2017
6.0.0-pre11 2,143 9/7/2017
5.0.0 452,967 10/8/2016
5.0.0-b3 2,839 10/5/2016
4.0.0 244,976 11/24/2015
3.3.0 3,794 11/10/2015
3.2.0 5,321 9/28/2015
3.1.1 4,712 9/19/2015
3.1.0 4,920 8/30/2015
3.0.0 3,213 8/22/2015
2.0.0 109,932 7/2/2014
1.0.0 9,161 7/10/2013