OwlDomain.Common.Throw.Guards
2.0.0
Prefix Reserved
See the version list below for details.
dotnet add package OwlDomain.Common.Throw.Guards --version 2.0.0
NuGet\Install-Package OwlDomain.Common.Throw.Guards -Version 2.0.0
<PackageReference Include="OwlDomain.Common.Throw.Guards" Version="2.0.0" />
paket add OwlDomain.Common.Throw.Guards --version 2.0.0
#r "nuget: OwlDomain.Common.Throw.Guards, 2.0.0"
// Install OwlDomain.Common.Throw.Guards as a Cake Addin #addin nuget:?package=OwlDomain.Common.Throw.Guards&version=2.0.0 // Install OwlDomain.Common.Throw.Guards as a Cake Tool #tool nuget:?package=OwlDomain.Common.Throw.Guards&version=2.0.0
Common.Throw.Guards
A package that provides guard methods used for throwing exceptions if the required conditions are not met.
This package is optional and you can always replace it with your own custom guard methods,
if you wish to do so check out the OwlDomain.Common.Throw.Base
package.
Usage
Using the provided packages is extremely simple, after referencing them from your project
simply use the OwlDomain.Common
namespace, which will provide you access to the static
Throw
class, which provides the static property If
, on which you will have
access to all of the guard extension methods for conditionally throwing exceptions.
An example of this would be:
using OwlDomain.Common;
void Foo(int index)
{
Throw.If.IsFalse(index >= 0);
}
This package also makes use of the throw extension methods provided by the
OwlDomain.Common.Throw
package.
License
This project (the source, and the release files, e.t.c) is release under the OwlDomain License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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 is compatible. 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.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- OwlDomain.Common.Throw (>= 2.0.0)
-
net6.0
- OwlDomain.Common.Throw (>= 2.0.0)
-
net7.0
- OwlDomain.Common.Throw (>= 2.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OwlDomain.Common.Throw.Guards:
Package | Downloads |
---|---|
OwlDomain.Common
A package that contains various commonly used code. |
GitHub repositories
This package is not used by any popular GitHub repositories.