Olve.Results
0.31.0
dotnet add package Olve.Results --version 0.31.0
NuGet\Install-Package Olve.Results -Version 0.31.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="Olve.Results" Version="0.31.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Olve.Results" Version="0.31.0" />
<PackageReference Include="Olve.Results" />
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 Olve.Results --version 0.31.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Olve.Results, 0.31.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 Olve.Results@0.31.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=Olve.Results&version=0.31.0
#tool nuget:?package=Olve.Results&version=0.31.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Olve.Results
Lightweight result type used for error handling throughout the repository. It represents success or a collection of problems instead of throwing exceptions.
Installation
dotnet add package Olve.Results
Usage
Result<string> result = Result.Try(() => File.ReadAllText("/tmp/test.txt"));
if (result.TryPickProblems(out var problems, out var text))
{
foreach (var p in problems)
Console.WriteLine(p.Message);
return;
}
Console.WriteLine(text);
// chain multiple steps
Result<(GL, IInputContext)> contexts = Result.Concat(
() => Result.Try(() => window.CreateOpenGL(), "create GL"),
() => Result.Try(() => window.CreateInput(), "create input"));
// aggregate results
foreach (var service in services)
loadResults.Add(service.Load());
if (loadResults.TryPickProblems(out var loadProblems))
return loadProblems.Prepend("scene load failed");
See the API documentation for more details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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.
-
net9.0
- Olve.Paths (>= 0.31.0)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Olve.Results:
Package | Downloads |
---|---|
Olve.Utilities
Various pieces of utility |
|
Olve.Operations
Operation type implementation and utilities |
|
Olve.Results.TUnit
TUnit integration for Olve.Results |
|
Olve.Validation
Validation helpers built on top of Olve.Results |
|
Olve.MinimalApi
Minimal API extensions for ASP.NET Core including JSON conversion for IPath, result mapping, and validation helpers |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.31.0 | 16 | 8/5/2025 |
0.30.0 | 14 | 8/3/2025 |
0.29.1 | 16 | 8/3/2025 |
0.29.0 | 13 | 8/3/2025 |
0.28.2 | 13 | 8/2/2025 |
0.26.2 | 438 | 7/21/2025 |
0.23.0 | 189 | 7/5/2025 |
0.22.2 | 104 | 6/7/2025 |
0.22.1 | 84 | 6/7/2025 |
0.22.0 | 84 | 6/7/2025 |
0.21.0 | 93 | 6/7/2025 |
0.20.2 | 251 | 5/13/2025 |
0.20.1 | 188 | 4/22/2025 |
0.20.0 | 166 | 4/22/2025 |
0.19.3 | 142 | 4/12/2025 |
0.19.0 | 112 | 4/12/2025 |
0.18.0 | 159 | 4/11/2025 |
0.17.2 | 148 | 4/8/2025 |
0.16.0 | 104 | 4/6/2025 |
0.15.0 | 161 | 3/27/2025 |
0.14.0 | 247 | 3/19/2025 |
0.13.0 | 149 | 3/18/2025 |
0.12.1 | 148 | 3/18/2025 |
0.12.0 | 151 | 3/18/2025 |
0.11.0 | 318 | 3/18/2025 |