![]() |
VOOZH | about |
dotnet add package Wrap --version 1.2.5
NuGet\Install-Package Wrap -Version 1.2.5
<PackageReference Include="Wrap" Version="1.2.5" />
<PackageVersion Include="Wrap" Version="1.2.5" />Directory.Packages.props
<PackageReference Include="Wrap" />Project file
paket add Wrap --version 1.2.5
#r "nuget: Wrap, 1.2.5"
#:package Wrap@1.2.5
#addin nuget:?package=Wrap&version=1.2.5Install as a Cake Addin
#tool nuget:?package=Wrap&version=1.2.5Install as a Cake Tool
👁 GitHub release (latest by date including pre-releases)
👁 Nuget
👁 GitHub
<br/>👁 Test
👁 Publish
👁 Codacy Badge
Functional monads for .NET (including Maybe - see example) for C# - to handle null values and exceptions better. Railway-oriented programming support via Linq extensions, method chaining, and fuly asynchronous throughout.
Types include:
Monad<T>Either<TLeft, TRight>Id<T> (support for int, uint, long, ulong and Guid value types)Maybe<T> (either: Some<T> or None)Result<T> (either: Ok<T> or Failure)View the Wiki for documentation.
Although this library is at v1, it brings together some mature projects I have been working on since 2019. It started with a Result<T> implementation which morphed into Maybe - which reached v10 in November 2025 - and I figured it would be best to have both.
At the same time I was maintaining a StrongId library - which reached v8.5 in November 2024 - to avoid using primitives for Entity IDs. I realised the similarities between Result<T>, Maybe<T> and Id<T> and decided to bring them all together in one library: Wrap.
Copyright (c) 2019-2026 bfren (unless otherwise stated)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Wrap:
| Package | Downloads |
|---|---|
|
Jeebs
Jeebs library |
|
|
Jeebs.Config
Jeebs.Config library |
|
|
Jeebs.Data
Jeebs.Data library |
|
|
Jeebs.Logging.Serilog
Jeebs.Logging.Serilog library |
|
|
Jeebs.Cryptography
Jeebs.Cryptography library |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.5 | 896 | 5/16/2026 |
| 1.2.4 | 434 | 4/22/2026 |
| 1.2.3 | 474 | 3/13/2026 |
| 1.2.2 | 177 | 3/6/2026 |
| 1.2.1 | 143 | 2/20/2026 |
| 1.2.1-beta.1 | 83 | 2/20/2026 |
| 1.2.0 | 497 | 2/17/2026 |
| 1.1.0 | 474 | 2/8/2026 |
| 1.1.0-beta.9 | 91 | 2/7/2026 |
| 1.1.0-beta.7 | 86 | 2/1/2026 |
| 1.1.0-beta.6 | 89 | 2/1/2026 |
| 1.1.0-beta.5 | 98 | 1/31/2026 |
| 1.1.0-beta.4 | 83 | 1/30/2026 |
| 1.1.0-beta.3 | 79 | 1/29/2026 |
| 1.1.0-beta.1 | 86 | 1/28/2026 |
| 1.0.0 | 384 | 1/27/2026 |
| 1.0.0-beta.26012610 | 81 | 1/27/2026 |
| 1.0.0-beta.26012605 | 92 | 1/26/2026 |
| 1.0.0-beta.26012604 | 82 | 1/26/2026 |
| 1.0.0-beta.26012514 | 155 | 1/25/2026 |