Wrap.Result.Testing
1.1.0-beta.5
See the version list below for details.
dotnet add package Wrap.Result.Testing --version 1.1.0-beta.5
NuGet\Install-Package Wrap.Result.Testing -Version 1.1.0-beta.5
<PackageReference Include="Wrap.Result.Testing" Version="1.1.0-beta.5" />
<PackageVersion Include="Wrap.Result.Testing" Version="1.1.0-beta.5" />
<PackageReference Include="Wrap.Result.Testing" />
paket add Wrap.Result.Testing --version 1.1.0-beta.5
#r "nuget: Wrap.Result.Testing, 1.1.0-beta.5"
#:package Wrap.Result.Testing@1.1.0-beta.5
#addin nuget:?package=Wrap.Result.Testing&version=1.1.0-beta.5&prerelease
#tool nuget:?package=Wrap.Result.Testing&version=1.1.0-beta.5&prerelease
Wrap Monads (C#)
Various monads (including Maybe - see here) for C# - to handle null values and exceptions better - including Linq support, chaining, and asynchronous programming. Includes:
Either<TLeft, TRight>Union<T>Id<T>(support forint,uint,long,ulongandGuidvalue types)Maybe<T>(either:Some<T>orNone)Result<T>(either:Ok<T>orFailure)
View the Wiki for documentation.
History
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.
Licence
Copyright
Copyright (c) 2019-2026 bfren (unless otherwise stated)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 is compatible. 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. |
-
net10.0
- Wrap.Result (>= 1.1.0-beta.5)
-
net8.0
- Wrap.Result (>= 1.1.0-beta.5)
-
net9.0
- Wrap.Result (>= 1.1.0-beta.5)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Wrap.Result.Testing:
| Package | Downloads |
|---|---|
|
Wrap.Testing
All.Testing library |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.4 | 120 | 4/22/2026 |
| 1.2.3 | 143 | 3/13/2026 |
| 1.2.2 | 120 | 3/6/2026 |
| 1.2.1 | 124 | 2/20/2026 |
| 1.2.1-beta.1 | 71 | 2/20/2026 |
| 1.2.0 | 123 | 2/17/2026 |
| 1.1.0 | 161 | 2/8/2026 |
| 1.1.0-beta.9 | 77 | 2/7/2026 |
| 1.1.0-beta.7 | 80 | 2/1/2026 |
| 1.1.0-beta.6 | 74 | 2/1/2026 |
| 1.1.0-beta.5 | 76 | 1/31/2026 |
| 1.1.0-beta.4 | 75 | 1/30/2026 |
| 1.1.0-beta.3 | 68 | 1/29/2026 |
| 1.1.0-beta.1 | 71 | 1/28/2026 |
| 1.0.0 | 135 | 1/27/2026 |
| 1.0.0-beta.26012610 | 74 | 1/27/2026 |
| 1.0.0-beta.26012605 | 78 | 1/26/2026 |
| 1.0.0-beta.26012604 | 65 | 1/26/2026 |
| 1.0.0-beta.26012514 | 86 | 1/25/2026 |
| 1.0.0-beta.26012511 | 71 | 1/25/2026 |