Wrap 1.0.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Wrap --version 1.0.0
                    
NuGet\Install-Package Wrap -Version 1.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="Wrap" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Wrap" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Wrap" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Wrap --version 1.0.0
                    
#r "nuget: Wrap, 1.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.
#:package Wrap@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Wrap&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Wrap&version=1.0.0
                    
Install as a Cake Tool

Wrap Monads (C#)

GitHub release (latest by date including pre-releases) Nuget GitHub<br/>Test Publish Codacy Badge

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 for int, uint, long, ulong and Guid value types)
  • Maybe<T> (either: Some<T> or None)
  • Result<T> (either: Ok<T> or Fail)

View the Wiki for documentation.

Licence

MIT

Copyright (c) 2019-2026 bfren (unless otherwise stated)

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (29)

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0-beta.4 0 1/30/2026
1.1.0-beta.3 20 1/29/2026
1.1.0-beta.1 32 1/28/2026
1.0.0 232 1/27/2026
1.0.0-beta.26012610 34 1/27/2026
1.0.0-beta.26012605 45 1/26/2026
1.0.0-beta.26012604 35 1/26/2026
1.0.0-beta.26012514 103 1/25/2026
1.0.0-beta.26012511 45 1/25/2026
1.0.0-beta.26012410 47 1/24/2026
1.0.0-beta.26012406 35 1/24/2026
1.0.0-beta.25112101 300 11/21/2025
1.0.0-beta.25041503 225 4/15/2025
1.0.0-beta.25022801 185 2/28/2025
1.0.0-beta.24112001 103 11/20/2024
1.0.0-beta.24111501 94 11/15/2024
1.0.0-beta.24101802 123 10/18/2024
1.0.0-beta.24101801 151 10/18/2024
1.0.0-beta.24073001 91 7/30/2024
1.0.0-beta.24040502 212 4/5/2024
1.0.0-beta.24040101 109 4/1/2024
1.0.0-beta.24032701 107 3/27/2024
1.0.0-beta.24032302 115 3/23/2024
1.0.0-beta.24032301 103 3/23/2024
1.0.0-beta.24032101 94 3/21/2024
1.0.0-beta.23102801 165 10/28/2023
1.0.0-beta.23101001 142 10/10/2023
1.0.0-beta.23092501 132 9/25/2023
1.0.0-beta.23092401 127 9/24/2023
1.0.0-beta.23092301 141 9/23/2023
1.0.0-beta.23092208 129 9/22/2023
1.0.0-beta.23092207 132 9/22/2023