Represents the common interface for Result monad.
Namespace: DotNext Assembly: DotNext.dll Syntaxpublic 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.
TErrorThe type that represents an error.
Properties | Edit this page View Source ErrorGets the error.
Declaration Property Value Methods | Edit this page View Source OrInvoke(Func<TError, T>)Returns the value if present; otherwise invoke delegate.
DeclarationT 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 TThe value, if present, otherwise returned from delegate.
Extension MethodsRetroSearch 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