Interface IResult<TOk, TFailure>
Assembly: p1eXu5.Result.dll
Syntax
public interface IResult<TOk, TFailure> : IResult
Type Parameters
Name |
Description |
TOk |
|
TFailure |
|
Properties
|
Improve this Doc
View Source
FailedContext
Declaration
TFailure FailedContext { get; }
Property Value
Type |
Description |
TFailure |
|
Exceptions
|
Improve this Doc
View Source
SuccessContext
Declaration
TOk SuccessContext { get; }
Property Value
Exceptions
Methods
|
Improve this Doc
View Source
TryGetFailedContext(out TFailure)
Gets the failed result context.
Declaration
bool TryGetFailedContext(out TFailure failedContext)
Parameters
Type |
Name |
Description |
TFailure |
failedContext |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetSucceededContext(out TOk)
Gets the succeeded result context.
Declaration
bool TryGetSucceededContext(out TOk succeededContext)
Parameters
Type |
Name |
Description |
TOk |
succeededContext |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods