Show / Hide Table of Contents

Interface IResultMonad<T>

Represents Result monad where error is represented by the exception.

Inherited Members
IResultMonad<T, Exception>.OrInvoke(Func<Exception, T>)
IResultMonad<T, Exception>.Error
IOptionMonad<T>.Or(T)
IOptionMonad<T>.OrInvoke(Func<T>)
IOptionMonad<T>.TryGet(out T)
IOptionMonad<T>.HasValue
IOptionMonad<T>.ValueOrDefault
ISupplier<object>.Invoke()
IFunctional.DynamicInvoke(scoped ref readonly Variant, int, scoped Variant)
IFunctional.GetArgument<T>(ref readonly Variant, int)
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public interface IResultMonad<T> : IResultMonad<T, Exception>, IOptionMonad<T>, ISupplier<object?>, IFunctional
Type Parameters
Name Description
T

The type of the result.

Properties

View Source

Value

Gets the value of the monad.

Declaration
T Value { get; }
Property Value
Type Description
T
Exceptions
Type Condition
Exception

The underlying exception is thrown.

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾