Struct Result<T>
Assembly: Code.Library.dll
Syntax
[Serializable]
public struct Result<T> : IResult, ISerializable
Type Parameters
Properties
|
Improve this Doc
View Source
Error
Declaration
public string Error { get; }
Property Value
|
Improve this Doc
View Source
IsFailure
Declaration
public bool IsFailure { get; }
Property Value
|
Improve this Doc
View Source
IsSuccess
Declaration
public bool IsSuccess { get; }
Property Value
|
Improve this Doc
View Source
Value
Declaration
Property Value
Methods
|
Improve this Doc
View Source
Deconstruct(out bool, out bool)
Declaration
public void Deconstruct(out bool isSuccess, out bool isFailure)
Parameters
Type |
Name |
Description |
bool |
isSuccess |
|
bool |
isFailure |
|
|
Improve this Doc
View Source
Deconstruct(out bool, out bool, out T)
Declaration
public void Deconstruct(out bool isSuccess, out bool isFailure, out T value)
Parameters
Type |
Name |
Description |
bool |
isSuccess |
|
bool |
isFailure |
|
T |
value |
|
|
Improve this Doc
View Source
Deconstruct(out bool, out bool, out T, out string)
Declaration
public void Deconstruct(out bool isSuccess, out bool isFailure, out T value, out string error)
Parameters
Type |
Name |
Description |
bool |
isSuccess |
|
bool |
isFailure |
|
T |
value |
|
string |
error |
|
Operators
|
Improve this Doc
View Source
implicit operator Result(Result<T>)
Declaration
public static implicit operator Result(Result<T> result)
Parameters
Type |
Name |
Description |
Result<T> |
result |
|
Returns
Implements
Extension Methods