Repository navigation
Releases: nsmela/BasicResults
Releases · nsmela/BasicResults
Release list
BasicResults 1.0.1
Documentation release. The library's code is unchanged from 1.0.0.
The README, which is also this package's page on nuget.org, has been rewritten for people installing the package:
- Self-contained examples that compile with C# 7.3, the default for .NET Framework projects.
- Platform support stated as .NET 5+, .NET Core 2.0+ and .NET Framework 4.7.2+, with the tests noted as running on .NET 8.
- A note that the implicit value-to-
Result<T>conversion does not apply whenTis an interface; useResult.Success(value)there. - The .NET 8 SDK prerequisite for building from source.
dotnet add package BasicResults
BasicResults 1.0.0
First release. Three small value types for modelling failure and absence without exceptions or nulls:
Error: a stable code and a human-readable description, compared by value.ResultandResult<T>: success or failure. They convert implicitly from a value or anError, and chain withMapandBind.Maybe<T>: an optional value with structural equality, andToResultfor when it becomes required.
Targets netstandard2.0 with no dependencies. Tested on .NET 8.
dotnet add package BasicResults