Ensure.That 7.0.0-pre24

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-pre24
NuGet\Install-Package Ensure.That -Version 7.0.0-pre24
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-pre24" />
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-pre24
#r "nuget: Ensure.That, 7.0.0-pre24"
#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-pre24&prerelease

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

Using static simple methods

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));

Samples

The Samples above just uses string validation, but there are more. E.g.:

  • Strings
  • Numerics
  • Collections (arrays, lists, collections, dictionaries)
  • Booleans
  • Guids

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 was computed.  netstandard2.1 was computed. 
.NET Framework net45 was computed.  net451 was computed.  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.

NuGet packages (128)

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/fhir-server
A service that implements the FHIR standard
draphyz/DDD
Domain-Driven Design example
danielwertheim/mycouch
MyCouch is the asynchronous CouchDB client for .NET
microsoft/Tools-for-Health-Data-Anonymization
Set of tools for helping with data (in FHIR format) anonymization.
Version Downloads Last updated
11.0.0-p3 119,502 10/27/2021
11.0.0-p2 1,883 10/18/2021
11.0.0-p1 15,432 7/6/2021
10.1.0 4,864,287 4/4/2021
10.1.0-p1 1,176 3/31/2021
10.0.0 140,964 2/22/2021
9.2.0 1,311,914 6/7/2020
9.1.0 17,082 6/4/2020
9.0.1 202,223 4/29/2020
8.1.2 746,580 11/15/2019
8.1.1 1,542,655 1/7/2019
8.1.0 195,620 11/10/2018
8.0.0 711,629 4/29/2018
8.0.0-pre78 2,124 2/17/2018
8.0.0-pre71 1,997 2/14/2018
7.2.1 186,499 12/29/2017
7.2.0 26,700 12/14/2017
7.1.0 38,120 11/19/2017
7.1.0-pre50 2,264 11/15/2017
7.0.0 6,667 11/9/2017
7.0.0-pre43 2,187 11/9/2017
7.0.0-pre38 2,265 11/9/2017
7.0.0-pre37 2,208 10/31/2017
7.0.0-pre32 17,024 10/16/2017
7.0.0-pre24 2,492 9/27/2017
6.0.1 20,576 10/4/2017
6.0.1-pre28 1,965 10/3/2017
6.0.0 14,107 9/19/2017
6.0.0-pre18 2,045 9/14/2017
6.0.0-pre16 2,113 9/10/2017
6.0.0-pre15 2,037 9/10/2017
6.0.0-pre12 2,001 9/9/2017
6.0.0-pre11 2,094 9/7/2017
5.0.0 424,068 10/8/2016
5.0.0-b3 2,794 10/5/2016
4.0.0 234,560 11/24/2015
3.3.0 3,623 11/10/2015
3.2.0 5,179 9/28/2015
3.1.1 4,551 9/19/2015
3.1.0 4,583 8/30/2015
3.0.0 3,156 8/22/2015
2.0.0 105,120 7/2/2014
1.0.0 8,994 7/10/2013