None<T>.

Match<TResult>(Func<T, TResult>, TResult) Method

Summary

returns the value in the parameter withoutValue.
Namespace
FunctionalSharp.OptionTypes
Containing Type
None<T>

Syntax

public TResult Match<TResult>(Func<T, TResult> withValue, TResult withoutValue)

Type Parameters

Name Description
TResult The result type.

Parameters

Name Type Description
withValue Func<T, TResult> Not executed.
withoutValue TResult The value returned.

Return Value

Type Description
TResult