Ferrous API Reference

All Types / Ferrous.Results

interface IOptionValue

public interface IOptionValue

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

Properties

bool IsSome

Gets a value indicating whether the option contains a value.

Methods

object? GetSomeValue()

Gets the boxed contained value if IsSome is true; otherwise null.