Result
Represents extension methods for type Result<T>.
Returns the second result if the first is unsuccessful.
Creates a new instance of Result<T> from the specified exception.
Creates a new instance of Result<T> from the specified value.
public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReference<T>(ref Result result)
Gets a reference to the underlying value.
public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReference<T, TError>(ref Result result) where TError : struct, Enum
Gets a reference to the underlying value.
Returns the underlying type argument of the specified result type.
Indicates that specified type is result type.
If a result is successful, returns it, otherwise null.
public static T? OrNull<T, TError>(this ref Result result) where T : struct where TError : struct, Enum
If a result is successful, returns it, otherwise null.