Interface IResult<TValue>
- Namespace
- LightResults
- Assembly
- LightResults.dll
Defines a result with a value.
public interface IResult<TValue> : IResult
Type Parameters
TValue
-
The type of value.
Implements
Methods
IsFailure(out IError, out TValue)
Determines whether the result failure.
bool IsFailure(out IError error, out TValue value)
Parameters
error
IError-
The error of the result.
value
TValue-
The value of the result.
Returns
- bool
-
true
if the result failure; otherwise,false
.
IsSuccess(out TValue)
Determines whether the result was successful.
bool IsSuccess(out TValue value)
Parameters
value
TValue-
The value of the result.
Returns
- bool
-
true
if the result was successful; otherwise,false
.
IsSuccess(out TValue, out IError)
Determines whether the result failure.
bool IsSuccess(out TValue value, out IError error)
Parameters
value
TValue-
The value of the result.
error
IError-
The error of the result.
Returns
- bool
-
true
if the result was successful; otherwise,false
.