Ok Method
Definition
- Namespace
- Tyne
- Assembly
- Tyne.Core.dll
Methods
| Edit this page View SourceOk<T, TE>(in T)
Creates an Ok( Result<T, TE>.T)
Declaration
[Pure]
public static Result<T, TE> Ok<T, TE>(in T value)
Parameters
value- T
The T value to encapsulate.
Returns
Result<T, TE>An Ok( Result<T, TE> which wraps T)value.
Type Parameters
TThe type of value the result encapsulates.
TEThe type of error the result encapsulates.
Exceptions
- ArgumentNullException
When
valueis null.