Represents the common interface for Result monad.
Namespace: DotNext Assembly: DotNext.dll Syntaxpublic interface IResultMonad<T, TError, TSelf> : IResultMonad<T, TError>, IOptionMonad<T, TSelf>, IOptionMonad<T>, ISupplier<object?>, IFunctional<Func<object?>> where TError : notnull where TSelf : struct, IResultMonad<T, TError, TSelf>
Type Parameters Name Description T
The type of the result.
TErrorThe type that represents an error.
TSelfThe implementing type.
Methods | Edit this page View Source FromError(TError)Creates unsuccessful result.
Declarationpublic static abstract TSelf FromError(TError error)
Parameters Type Name Description TError error
The error representing unsuccessful result.
Returns Type Description TSelfThe unsuccessful result.
Operators | Edit this page View Source implicit operator Optional<T>(in TSelf)Converts the result to Optional<T> monad.
Declarationpublic static implicit operator Optional<T>(in TSelf result)
Parameters Type Name Description TSelf result
The result to be converted.
Returns Type Description Optional<T>The converted result.
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