Result<T, TError>
public struct Result<T, TError> : IResultMonad<T, TError, Result<T, TError>>, IResultMonad<T, TError>, IOptionMonad<T>, ISupplier<object>, IOptionMonad<T, Result<T, TError>> where TError : struct, Enum
Represents a result of operation which can be actual result or error code.
Gets the error code.
Indicates that the result is successful.
Extracts the actual result.
Initializes a new successful result.
Initializes a new unsuccessful result.
Indicates that both results are successful.
Extracts actual result.
Indicates that the result represents error.
Converts the result into Optional<T>.
Converts the result into Result<T>.
Converts value into the result.
Indicates that the result is successful.
Gets boxed representation of the result.
If successful result is present, apply the provided mapping function hiding any exception
caused by the converter.
Returns the value if present; otherwise return default value.
Returns the value if present; otherwise return default value.
Returns the value if present; otherwise invoke delegate.
Returns the value if present; otherwise invoke delegate.
Gets underlying value or throws an exception.
Converts this result into Result<T>.
Attempts to extract value from container if it is present.
Converts the result into Optional<T>.