Ferrous API Reference

All Types / Ferrous.Results

interface IResultValue

public interface IResultValue

Non-generic inspection contract implemented by Result<T, TError> so framework integrations (such as ASP.NET Core endpoint filters) can inspect boxed results without reflection or trimming warnings.

Properties

bool IsOk

Gets a value indicating whether the result is in the Ok state.

bool IsErr

Gets a value indicating whether the result is in the Err state.

Methods

object? GetOkValue()

Gets the boxed Ok value if IsOk is true; otherwise null.

object? GetErrValue()

Gets the boxed Err value if IsErr is true; otherwise null.