Light.GuardClauses
3.0.0
See the version list below for details.
dotnet add package Light.GuardClauses --version 3.0.0
NuGet\Install-Package Light.GuardClauses -Version 3.0.0
<PackageReference Include="Light.GuardClauses" Version="3.0.0" />
paket add Light.GuardClauses --version 3.0.0
#r "nuget: Light.GuardClauses, 3.0.0"
// Install Light.GuardClauses as a Cake Addin #addin nuget:?package=Light.GuardClauses&version=3.0.0 // Install Light.GuardClauses as a Cake Tool #tool nuget:?package=Light.GuardClauses&version=3.0.0
A lightweight .NET library for expressive Guard Clauses.
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.0 is compatible. netstandard1.1 was computed. 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 | wp8 was computed. wp81 was computed. 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.0
- NETStandard.Library (>= 1.6.1)
NuGet packages (24)
Showing the top 5 NuGet packages that depend on Light.GuardClauses:
Package | Downloads |
---|---|
Updatedge.net
C# wrapper for the updatedge API |
|
Synnotech.Migrations.Core
Core implementation of a generic migration engine that can be adapted to any target system. |
|
Synnotech.Linq2Db
Package Description |
|
Light.ViewModels
Simplify your XAML applications with Light.ViewModels! |
|
Light.DependencyInjection
The DI Container you always wanted. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Light.GuardClauses:
Repository | Stars |
---|---|
ExtendedXmlSerializer/home
A configurable and eXtensible Xml serializer for .NET.
|
Version | Downloads | Last updated |
---|---|---|
12.0.0 | 1,245 | 10/27/2024 |
11.0.0 | 123,317 | 11/16/2023 |
11.0.0-preview1 | 116 | 9/24/2023 |
10.3.0 | 8,143 | 10/9/2023 |
10.2.0 | 1,537 | 9/22/2023 |
10.1.0 | 13,156 | 8/6/2023 |
10.0.0 | 427,024 | 12/6/2021 |
9.0.0 | 112,054 | 12/6/2020 |
8.1.0 | 57,716 | 5/27/2020 |
8.0.1 | 21,911 | 3/26/2020 |
8.0.0 | 585 | 3/25/2020 |
7.0.0 | 43,447 | 7/13/2019 |
6.2.0 | 17,717 | 2/12/2019 |
6.1.0 | 20,444 | 11/18/2018 |
6.0.0 | 857 | 11/10/2018 |
5.0.1 | 58,844 | 8/3/2018 |
5.0.0 | 1,247 | 7/29/2018 |
4.0.0 | 1,317 | 7/10/2018 |
3.5.0 | 2,761 | 9/3/2017 |
3.4.0 | 1,000 | 8/27/2017 |
3.3.0 | 1,186 | 8/15/2017 |
3.2.0 | 1,007 | 8/13/2017 |
3.1.0 | 990 | 8/6/2017 |
3.0.0 | 1,408 | 7/23/2017 |
2.0.0 | 1,332 | 5/29/2017 |
1.3.0 | 1,065 | 4/12/2017 |
1.2.1 | 1,792 | 11/16/2016 |
1.2.0 | 3,220 | 7/25/2016 |
1.1.0 | 1,502 | 6/2/2016 |
1.0.0 | 1,080 | 6/1/2016 |
0.2.0 | 1,101 | 3/29/2016 |
0.1.0 | 1,312 | 3/23/2016 |
New Features in version 3.0.0
--------------------------------------
New assertions for Type and TypeInfo:
- IsEquivalentTo, MustBeEquivalentTo, and MustNotBeEquivalentTo
- IsClass, MustBeClass, and MustNotBeClass
- IsInterface, MustBeInterface and MustNotBeInterface
- IsStruct, MustBeStruct and MustNotBeStruct
- IsDelegate, MustBeDelegate and MustNotBeDelegate
- IsEnum, MustBeEnum and MustNotBeEnum
- IsReferenceType, IsValueType, MustBeReferenceType, and MustBeValueType
- IsDerivingFrom, IsImplementing, MustDeriveFrom, MustNotDeriveFrom, MustImplement, MustNotImplement, MustDeriveFromOrImplement, MustNotDeriveFromOrImplement
- IsOrImplements, IsOrDerivesFrom, and IsInInheritanceHierarchyOf
New assertions for strings:
- IsEquivalentTo, MustBeEquivalentTo, MustNotBeEquivalentTo
- IsContaining
GetAllExceptionMessages and AppendExceptionMessages can be used to append all exception message into one string.
Breaking Changes:
--------------------------------------
The API of StringAssertions has changed as MustContain, MustNotContain, MustBeSubstringOf, and MustNotBeSubstringOf were reimplemented to search more efficiently for substring (no additional string creation when case sensitivity is turned off). MustNotBeNullOrEmpty and MustNotBeNullOrWhiteSpace now always throw ArgumentNullExceptions, even when a custom exception is provided.
The second parameter of Check.That and Check.Against is now called exception instead of createException.