DotFluent 4.1.0

dotnet add package DotFluent --version 4.1.0
                    
NuGet\Install-Package DotFluent -Version 4.1.0
                    
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="DotFluent" Version="4.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotFluent" Version="4.1.0" />
                    
Directory.Packages.props
<PackageReference Include="DotFluent" />
                    
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 DotFluent --version 4.1.0
                    
#r "nuget: DotFluent, 4.1.0"
                    
#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 DotFluent@4.1.0
                    
#: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=DotFluent&version=4.1.0
                    
Install as a Cake Addin
#tool nuget:?package=DotFluent&version=4.1.0
                    
Install as a Cake Tool

DotFluent

DotFluent is a library providing a set of extension members for commonly used types within .Net (C#) to enable writing code fluently. It also adds support for different patterns like the option or result pattern (unions) and further enhances .Net features like LINQ by adding more methods and overloads to existing methods as well as bringing promise like extensions to .Net Tasks.

Below you will find an overview of all included features per namespace:

DotFluent

CollectionExtensions

NullableExtensions

ObjectExtensions

StringExtensions

DotFluent.Linq

Sequence

DotFluent.Optional

Option

Option<T>

Result

Result<T>

Result<TValue, TError>

DotFluent.Optional.Primitives

Error

Error<T>

Success

Success<T>

DotFluent.Optional.Tasks

OptionTask

ResultTask

DotFluent.Optional.Unsafe

UnsafeOption

UnsafeResult

DotFluent.Optional.Unsafe.Tasks

UnsafeOptionTask

UnsafeResultTask

DotFluent.Tasks

TaskExtensions

ValueTaskExtensions

Where can I get it?

You can use the NuGet package manager console to install DotFluent:

PM> Install-Package DotFluent

Or use the .Net CLI:

dotnet add package DotFluent

For more installation options visit the DotFluent NuGet package overview.

This documentation was mostly generated by the XMLDoc2Markdown tool.
Product 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 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 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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework 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 tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.1.0 676 11/15/2025
4.0.0 518 10/1/2025
3.8.0 4,583 9/10/2024
3.6.0 2,145 2/1/2024
3.5.1 2,885 1/26/2023
3.5.0 462 12/23/2022
3.3.0 773 9/21/2022
3.2.0 995 3/1/2022
3.1.0 548 8/17/2021
3.0.0 592 3/1/2021
2.2.0 2,493 9/24/2020
2.1.0 620 7/26/2020
2.0.0 6,609 4/3/2020
1.8.0 1,968 1/8/2020
1.6.1 5,682 9/25/2019
1.6.0 1,090 7/10/2019
1.5.0 773 3/15/2019
1.0.0 767 3/1/2019