Pitcher 2.1.1

.NET Standard 2.0
dotnet add package Pitcher --version 2.1.1
NuGet\Install-Package Pitcher -Version 2.1.1
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="Pitcher" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pitcher --version 2.1.1
#r "nuget: Pitcher, 2.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pitcher as a Cake Addin
#addin nuget:?package=Pitcher&version=2.1.1

// Install Pitcher as a Cake Tool
#tool nuget:?package=Pitcher&version=2.1.1

Pitcher is helper library to simplify throwing exceptions and make methods easier to inline by reducing code size.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Pitcher:

Package Downloads
AtleX.HaveIBeenPwned

AtleX.HaveIBeenPwned is a fully async and super fast .NET Standard client library for HaveIBeenPwned.com.

AtleX.DependencyInjection.Modules

AtleX.DependencyInjection.ServiceRegistration

AtleX.DependencyInjection.Modules.AspNetCore

AtleX.DependencyInjection.ServiceRegistration.AspNetCore

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.1 45,725 6/9/2020
2.1.0 2,651 9/13/2019
2.0.0 444 8/18/2019
1.4.0 1,033 5/19/2019
1.3.0 928 3/31/2019
1.2.0 1,272 10/14/2018
1.1.0 654 8/25/2018
1.0.0 771 6/23/2018
1.0.0-beta4 661 6/19/2018
1.0.0-beta3 635 6/12/2018
1.0.0-beta2 646 6/11/2018
1.0.0-beta1 651 6/11/2018

2.1.1:
     - [Feature] Enabled deterministic builds (#15)
     2.1.0:
     - [Feature] Use "is null" instead of "== null" for null checks (#10)
     - [Feature] Add Throw.ArgumentOutOfRange.WhenNegativeNumber() to throw an ArgumentOutOfRangeException when a number is less than zero (#11)
     - [Feature] Add Throw.ArgumentOutOfRange.WhenPositiveNumber() to throw an ArgumentOutOfRangeException when a number is zero or more (#12)
     - [Feature]] Add Throw.ArgumentOutOfRange.WhenLessThan<T>() where T is IComparable<T> to throw an ArgumentOutOfRangeException when the argument is less than the specified value (#13)
     - [Feature]] Add Throw.ArgumentOutOfRange.WhenMoreThan<T>() where T is IComparable<T> to throw an ArgumentOutOfRangeException when the argument is more than the specified value (#14)
     2.0.0:
     - [Breaking] Strong-named the assembly (#9)
     - [Breaking] Moved to a single NETSTANDARD2.0 TFM (#5)
     - [Deprecated] Throw.ArgumentNull.WhenNull(string, string) and Throw.ArgumentNull.WhenNull(string, string, string) are marked as obsolete (#7)
     - [Feature] Added Throw.ArgumentNull.WhenNullOrEmpty(string, string) and Throw.ArgumentNull.WhenNullOrEmpty(string, string, string) to throw an ArgumentNullException on null or empty strings (#7)
     - [Feature] Added Throw.ArgumentNull.WhenNullOrEmpty<T>(IEnumerable<T>, string) and Throw.ArgumentNull.WhenNullOrEmpty<T>(IEnumerable<T>, string, string) to throw an ArgumentNullException on null or empty enumerables (#6)
     1.4.0:
     - [Feature] Moved from SourceLink with embedded PDB to a .snupkg on NuGet.org for debugging (#3)
     - [Feature] Added overloads for Throw.ArgumentNull.WhenNull() for strings (#4)
     1.3.0:
     - [Feature] Added Throw.When(bool, Func<Exception>)
     1.2.0:
     - [Feature] Enabled SourceLink support (#1)
     1.1.0:
     - [Fix] Removed expensive null check on arguments in Throw.This() and Throw.When()