Table of Contents

Interface IResult<TValue>

Namespace
Trellis
Assembly
Trellis.Core.dll

Generic interface for result types, providing typed access to the success value.

public interface IResult<TValue> : IResult

Type Parameters

TValue

The type of the success value.

Inherited Members
Extension Methods

Remarks

This interface extends IResult to add strongly-typed access to the success value.

Methods

TryGetValue(out TValue)

Attempts to get the success value without throwing.

bool TryGetValue(out TValue value)

Parameters

value TValue

When this method returns true, contains the success value; otherwise, the default value.

Returns

bool

True if the result is successful; otherwise false.