Summary
depending on weither the option holds a value or not the given function is executed to produce a returnvalue.
- Namespace
- FunctionalSharp
.OptionTypes - Containing Type
- IOption
<T>
Syntax
TResult Match<TResult>(Func<T, TResult> withValue, Func<TResult> withoutValue)
Type Parameters
| Name | Description |
|---|---|
| TResult |
Parameters
| Name | Type | Description |
|---|---|---|
| withValue | Func |
|
| withoutValue | Func |
Return Value
| Type | Description |
|---|---|
| TResult |
