Table of Contents

Interface IResultType

Namespace
Olve.Results
Assembly
Olve.Results.dll

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

object

Failed

Gets a value indicating whether the operation failed.

bool Failed { get; }

Property Value

bool

HasValue

Gets a value indicating whether this result type carries a value (i.e. is a Result<T>).

bool HasValue { get; }

Property Value

bool

Problems

Gets the collection of problems associated with the result, if any.

ResultProblemCollection? Problems { get; }

Property Value

ResultProblemCollection

Succeeded

Gets a value indicating whether the operation succeeded.

bool Succeeded { get; }

Property Value

bool