Struct Result<T>
Assembly: Glitch9.dll
Syntax
public readonly struct Result<T>
Type Parameters
Properties
|
Edit this page
View Source
ErrorMessage
Declaration
public string ErrorMessage { get; }
Property Value
|
Edit this page
View Source
Exception
Declaration
public Exception Exception { get; }
Property Value
|
Edit this page
View Source
IsFailure
Declaration
public bool IsFailure { get; }
Property Value
|
Edit this page
View Source
IsSuccess
Declaration
public bool IsSuccess { get; }
Property Value
|
Edit this page
View Source
Value
Declaration
Property Value
Methods
|
Edit this page
View Source
Fail(Exception, params string[])
Declaration
public static Result<T> Fail(Exception exception, params string[] reasons)
Parameters
Returns
|
Edit this page
View Source
Fail(string)
Declaration
public static Result<T> Fail(string errorMessage)
Parameters
| Type |
Name |
Description |
| string |
errorMessage |
|
Returns
|
Edit this page
View Source
Success(T)
Declaration
public static Result<T> Success(T data)
Parameters
| Type |
Name |
Description |
| T |
data |
|
Returns
Extension Methods