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.
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.
dotnet add package Optional --version 4.0.0
<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, 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=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
.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
Optional.Extensions

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

Optional.Async

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

Optional.Utilities

Various useful functionality for Optional.

Optional.Collections

Useful Optional extensions for working with collections.

Zafiro.Core

The Cross-platform Crema for .NET Devs

GitHub repositories (3)

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

Repository Stars
Soluto/kamus
An open source, git-ops, zero-trust secret encryption and decryption solution for Kubernetes applications
ipjohnson/Grace
Grace is a feature rich dependency injection container library
dnikolovv/dev-adventures-realworld
A RealWorld application implemented using the Dev Adventures .NET Core template and functional programming.
Version Downloads Last updated
5.0.0-alpha 357,699 2/5/2019
4.0.0 4,027,922 2/1/2018
4.0.0-rc 5,259 10/15/2017
3.2.0 321,125 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,495 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