A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://dotnet.github.io/dotNext/api/DotNext.IResultMonad-2.html below:

Interface IResultMonad<T, TError> | .NEXT

Interface IResultMonad<T, TError>

Represents the common interface for Result monad.

Namespace: DotNext Assembly: DotNext.dll Syntax
public interface IResultMonad<T, out TError> : IOptionMonad<T>, ISupplier<object?>, IFunctional<Func<object?>> where TError : notnull
Type Parameters Name Description T

The type of the result.

TError

The type that represents an error.

Properties | Edit this page View Source Error

Gets the error.

Declaration Property Value Methods | Edit this page View Source OrInvoke(Func<TError, T>)

Returns the value if present; otherwise invoke delegate.

Declaration
T OrInvoke(Func<out TError, T> defaultFunc)
Parameters Type Name Description Func<TError, T> defaultFunc

A delegate to be invoked if value is not present.

Returns Type Description T

The value, if present, otherwise returned from delegate.

Extension Methods

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4