holonsoft.FluentConditions 3.0.1

dotnet add package holonsoft.FluentConditions --version 3.0.1
                    
NuGet\Install-Package holonsoft.FluentConditions -Version 3.0.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="holonsoft.FluentConditions" Version="3.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="holonsoft.FluentConditions" Version="3.0.1" />
                    
Directory.Packages.props
<PackageReference Include="holonsoft.FluentConditions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add holonsoft.FluentConditions --version 3.0.1
                    
#r "nuget: holonsoft.FluentConditions, 3.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package holonsoft.FluentConditions@3.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=holonsoft.FluentConditions&version=3.0.1
                    
Install as a Cake Addin
#tool nuget:?package=holonsoft.FluentConditions&version=3.0.1
                    
Install as a Cake Tool

FluentConditions

New in 3.0.1

  • Support for net9 and net10 added
  • Minimum is now net8, older versions are not supported anymore

New in 2.0.1

  • Support for net8
  • Net5 will not be supported anymore
  • Update of several test unit nugets

FluentConditions is a framework for checking function parameters for certain criterias. For example asserting that your input is not null. You also get clean error messages with a reference to the line of code that faulted.

As example:

public void Test(bool boolValue = false)
{
	boolValue.Requires(nameof(boolValue))
		 .IsTrue();
}

would throw:


'boolValue' is false! At method 'Test' in 'C:\Path\To\Your.cs:5'


Thank you

We would like to thank Steven van Deursen because his library CuttingEdge.Conditions inspired us to program this.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on holonsoft.FluentConditions:

Package Downloads
holonsoft.FastProtocolConverter

Reflection based fast protocol converter: Converts raw bytes (e. g. from a hardware device) data to an instance of a class or vice versa

holonsoft.NoQBus

Asynchronous, fast and fully parallelized message bus.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.1 703 12/1/2025
2.0.1 2,110 11/29/2023
1.6.2 9,924 4/9/2022
1.6.1 1,300 11/30/2021
1.0.1.5 3,060 5/30/2021 1.0.1.5 is deprecated because it is no longer maintained.