Interface IResultType
Common interface implemented by Result and Result<T> to enable non-reflective type checking and value extraction.
public interface IResultType
Properties
BoxedValue
Gets the result value as an object, or null if the result has no value concept or the operation failed.
object? BoxedValue { get; }
Property Value
Failed
Gets a value indicating whether the operation failed.
bool Failed { get; }
Property Value
HasValue
Gets a value indicating whether this result type carries a value (i.e. is a Result<T>).
bool HasValue { get; }
Property Value
Problems
Gets the collection of problems associated with the result, if any.
ResultProblemCollection? Problems { get; }
Property Value
Succeeded
Gets a value indicating whether the operation succeeded.
bool Succeeded { get; }