.NET API 582,040 bytes
IResultMonad<T, TError>
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);
}
}