Ensure.That
7.0.0-pre32
See the version list below for details.
dotnet add package Ensure.That --version 7.0.0-pre32
NuGet\Install-Package Ensure.That -Version 7.0.0-pre32
<PackageReference Include="Ensure.That" Version="7.0.0-pre32" />
paket add Ensure.That --version 7.0.0-pre32
#r "nuget: Ensure.That, 7.0.0-pre32"
// Install Ensure.That as a Cake Addin #addin nuget:?package=Ensure.That&version=7.0.0-pre32&prerelease // Install Ensure.That as a Cake Tool #tool nuget:?package=Ensure.That&version=7.0.0-pre32&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 | Versions 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 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. |
-
.NETStandard 1.1
- NETStandard.Library (>= 1.6.1)
-
.NETStandard 2.0
- No dependencies.
NuGet packages (133)
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 (11)
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!
|
|
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
|
|
danielwertheim/mycouch
MyCouch is the asynchronous CouchDB client for .NET
|
Version | Downloads | Last updated |
---|---|---|
11.0.0-p3 | 172,471 | 10/27/2021 |
11.0.0-p2 | 1,911 | 10/18/2021 |
11.0.0-p1 | 18,036 | 7/6/2021 |
10.1.0 | 6,123,956 | 4/4/2021 |
10.1.0-p1 | 1,208 | 3/31/2021 |
10.0.0 | 146,502 | 2/22/2021 |
9.2.0 | 1,397,188 | 6/7/2020 |
9.1.0 | 17,360 | 6/4/2020 |
9.0.1 | 214,764 | 4/29/2020 |
8.1.2 | 778,210 | 11/15/2019 |
8.1.1 | 1,601,453 | 1/7/2019 |
8.1.0 | 215,424 | 11/10/2018 |
8.0.0 | 728,020 | 4/29/2018 |
8.0.0-pre78 | 2,158 | 2/17/2018 |
8.0.0-pre71 | 2,028 | 2/14/2018 |
7.2.1 | 198,235 | 12/29/2017 |
7.2.0 | 27,097 | 12/14/2017 |
7.1.0 | 40,603 | 11/19/2017 |
7.1.0-pre50 | 2,293 | 11/15/2017 |
7.0.0 | 6,892 | 11/9/2017 |
7.0.0-pre43 | 2,216 | 11/9/2017 |
7.0.0-pre38 | 2,301 | 11/9/2017 |
7.0.0-pre37 | 2,251 | 10/31/2017 |
7.0.0-pre32 | 17,576 | 10/16/2017 |
7.0.0-pre24 | 2,520 | 9/27/2017 |
6.0.1 | 20,908 | 10/4/2017 |
6.0.1-pre28 | 1,996 | 10/3/2017 |
6.0.0 | 14,367 | 9/19/2017 |
6.0.0-pre18 | 2,076 | 9/14/2017 |
6.0.0-pre16 | 2,144 | 9/10/2017 |
6.0.0-pre15 | 2,071 | 9/10/2017 |
6.0.0-pre12 | 2,027 | 9/9/2017 |
6.0.0-pre11 | 2,128 | 9/7/2017 |
5.0.0 | 447,337 | 10/8/2016 |
5.0.0-b3 | 2,824 | 10/5/2016 |
4.0.0 | 242,702 | 11/24/2015 |
3.3.0 | 3,748 | 11/10/2015 |
3.2.0 | 5,288 | 9/28/2015 |
3.1.1 | 4,692 | 9/19/2015 |
3.1.0 | 4,843 | 8/30/2015 |
3.0.0 | 3,190 | 8/22/2015 |
2.0.0 | 109,479 | 7/2/2014 |
1.0.0 | 9,123 | 7/10/2013 |