Optional 4.0.0

.NET Standard 1.0 .NET Framework 3.5
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Optional --version 4.0.0
NuGet\Install-Package Optional -Version 4.0.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="Optional" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Optional --version 4.0.0
#r "nuget: Optional, 4.0.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.
// Install Optional as a Cake Addin
#addin nuget:?package=Optional&version=4.0.0

// Install Optional as a Cake Tool
#tool nuget:?package=Optional&version=4.0.0

Optional is a robust option/maybe type for C#.

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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wp8 wp81 wpa81
Windows Store netcore netcore45 netcore451
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.

This package has no dependencies.

NuGet packages (85)

Showing the top 5 NuGet packages that depend on Optional:

Package Downloads

Async extensions for Nils Lück's Optional library.


DEPRECATED: Optional.Extensions has been replaced by more specific packages. Check out Optional.Collections, Optional.Utilities etc. Extended functionality for Optional.


Various useful functionality for Optional.


The Cross-platform Crema for .NET Devs


Useful Optional extensions for working with collections.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on Optional:

Repository Stars
An open source, git-ops, zero-trust secret encryption and decryption solution for Kubernetes applications
Grace is a feature rich dependency injection container library
A RealWorld application implemented using the Dev Adventures .NET Core template and functional programming.
Version Downloads Last updated
5.0.0-alpha 636,629 2/5/2019
4.0.0 4,969,290 2/1/2018
4.0.0-rc 5,382 10/15/2017
3.2.0 411,916 10/1/2016
3.1.0 5,735 4/17/2016
3.0.0 2,759 12/13/2015
2.2.0 14,580 4/26/2015
2.1.0 3,463 2/12/2015
0.2.0 1,323 2/3/2015
0.1.7 208,549 1/9/2015
0.1.6 1,302 12/29/2014
0.1.5 1,464 12/9/2014
0.1.0 1,891 12/8/2014