Class TryResultOrError<T>
- Namespace
- OneImlx.Shared.Infrastructure
- Assembly
- OneImlx.Shared.dll
The generic result of a trying method. The trying method must return an error or a valid result. Both Error and Result cannot be null.
public sealed class TryResultOrError<T> where T : class
Type Parameters
T
The result type.
- Inheritance
-
TryResultOrError<T>
- Inherited Members
Constructors
TryResultOrError(Error)
Initialize a new instance.
public TryResultOrError(Error error)
Parameters
error
Error
TryResultOrError(T)
Initialize a new instance.
public TryResultOrError(T result)
Parameters
result
T
Properties
Error
The result of a try.
public Error? Error { get; }
Property Value
Result
The result of a try.
public T? Result { get; }
Property Value
- T