DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.13.1" />

.NET API 582,040 bytes

 IResultMonad<T, TError>

public interface IResultMonad<T, TError> : IOptionMonad<T>, ISupplier<object>, IFunctional<Func<object>>
Represents common interface for Result monad.
using DotNext.Runtime.CompilerServices; using System; using System.Runtime.CompilerServices; namespace DotNext { [System.Runtime.CompilerServices.NullableContext(2)] public interface IResultMonad<T, [System.Runtime.CompilerServices.Nullable(1)] TError> : IOptionMonad<T>, ISupplier<object>, IFunctional<Func<object>> { TError Error { get; } [System.Runtime.CompilerServices.NullableContext(1)] T OrInvoke(Func<TError, T> defaultFunc); } }