PowerUtils.GuardClauses.Validations
1.1.0
See the version list below for details.
dotnet add package PowerUtils.GuardClauses.Validations --version 1.1.0
NuGet\Install-Package PowerUtils.GuardClauses.Validations -Version 1.1.0
<PackageReference Include="PowerUtils.GuardClauses.Validations" Version="1.1.0" />
paket add PowerUtils.GuardClauses.Validations --version 1.1.0
#r "nuget: PowerUtils.GuardClauses.Validations, 1.1.0"
// Install PowerUtils.GuardClauses.Validations as a Cake Addin #addin nuget:?package=PowerUtils.GuardClauses.Validations&version=1.1.0 // Install PowerUtils.GuardClauses.Validations as a Cake Tool #tool nuget:?package=PowerUtils.GuardClauses.Validations&version=1.1.0
Helpers, extensions and utilities to work with guard clause
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. 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 | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- PowerUtils.Net.Primitives (>= 1.2.0)
- PowerUtils.Text (>= 2.1.0)
- PowerUtils.Validations.Primitives (>= 1.0.0)
-
net5.0
- PowerUtils.Net.Primitives (>= 1.2.0)
- PowerUtils.Text (>= 2.1.0)
- PowerUtils.Validations.Primitives (>= 1.0.0)
-
net6.0
- PowerUtils.Net.Primitives (>= 1.2.0)
- PowerUtils.Text (>= 2.1.0)
- PowerUtils.Validations.Primitives (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- Added Guard `Guard.Validate.IfEmpty(string)`;
- Added Guard `Guard.Validate.IfEmpty(guid)`;
- Added Guard `Guard.Validate.NotEmail(email)`;
- Added Guard `Guard.Validate.IfLengthEquals(value, length)`;
- Added Guard `Guard.Validate.IfLengthDifference(value, length)`;
- Added new constructor `UnauthorizedException(property, errorCode, message)`;
- Added new constructor `ForbiddenException(property, errorCode, message)`;
- Added new constructor `NotFoundException(property, errorCode, message)`;
- Added new constructor `ConflictException(property, errorCode, message)`;
- Added factory `BadRequestException.Factory.CreateRequired(property)`;
- Added factory `PropertyException.Factory.CreateRequired(property)`;
- Added factory `UnauthorizedException.Factory.Create(property, errorCode)`;
- Added factory `ForbiddenException.Factory.Create(property, errorCode)`;
- Added factory `NotFoundException.Factory.Create(property, errorCode)`;
- Added factory `ConflictException.Factory.Create(property, errorCode)`;
- Added Throw `BadRequestException.ThrowRequired(property)`;
- Added Throw `PropertyException.ThrowRequired(property)`;
- Added Throw `UnauthorizedException.Throw(property, errorCode)`;
- Added Throw `ForbiddenException.Throw(property, errorCode)`;
- Added Throw `NotFoundException.Throw(property, errorCode)`;
- Added Throw `ConflictException.Throw(property, errorCode)`;