Table of Contents

Class OperationResult<TValue>

Namespace
AsiBackbone.Core.Results
Assembly
AsiBackbone.Core.dll

Represents the framework-neutral outcome of an operation that may return a value.

public sealed class OperationResult<TValue> : OperationResult

Type Parameters

TValue

The result value type.

Inheritance
OperationResult<TValue>
Inherited Members

Properties

HasValue

Gets a value indicating whether a successful result value is available.

public bool HasValue { get; }

Property Value

bool

Value

Gets the successful operation value.

public TValue Value { get; }

Property Value

TValue

Exceptions

InvalidOperationException

Thrown when the operation result is failed and no successful value is available.