Optional 5.0.0-alpha

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

// Install Optional as a Cake Tool
#tool nuget:?package=Optional&version=5.0.0-alpha&prerelease

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
.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
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 (83)

Showing the top 5 NuGet packages that depend on Optional:

Package Downloads

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


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


Various useful functionality for Optional.


Useful Optional extensions for working with collections.


The Cross-platform Crema for .NET Devs

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 357,854 2/5/2019
4.0.0 4,028,357 2/1/2018
4.0.0-rc 5,259 10/15/2017
3.2.0 321,160 10/1/2016
3.1.0 5,374 4/17/2016
3.0.0 2,630 12/13/2015
2.2.0 14,314 4/26/2015
2.1.0 3,245 2/12/2015
0.2.0 1,213 2/3/2015
0.1.7 200,502 1/9/2015
0.1.6 1,193 12/29/2014
0.1.5 1,346 12/9/2014
0.1.0 1,698 12/8/2014