Build | |
Coverage | Coveralls SonarQube |
Quality | |
Nuget | |
License |
Here is a .NET library that mainly provides functional features for C#. It handles and encapsulates the logic of functional based objects including the following ones.
-
The
Option<T>
. This structure encapsulates the concept of having a value or not. This mechanic safely handles a traditional null return. For more details onOption<T>
usage see the following tips. -
The
Either<TLeft, TRight>
. This structure encapsulates the concept of having a success value (right) or a failure (left). This provides a better management of method returns that can generate error by clarifying the error case. For more details onEither<TLeft, TRight>
usage see the following tips. -
The
Result
. This structure encapsulates treatments results. This provides an improved return state, and also a better error management. For more details onResult
usage see the following tips. -
The
ValueObject
. This structure encapsulates boilerplate code required to compare objects on their values rather than their references. This allows an easy creation of comparable/interchangeable objects. For more details onValueObject
usage see the following tips.
See the library documentation.
Supports Source Link
No package dependencies.
-
It uses NUnit3 for unit testing (not published).
-
The library code is published annotated with JetBrains annotations.
Here is available on NuGet
PM> Install-Package Here