Method Where
Where<T>(Maybe<T>, Func<T, Boolean>)
Extension method allowing Maybe{T} instances to be used in LINQ where clauses.
Declaration
public static Maybe<T> Where<T>(this Maybe<T> maybe, Func<T, bool> predicate)
Parameters
| Type | Name | Description |
|---|---|---|
| Maybe<T> | maybe | A Maybe{T} instance to operate on. |
| Func<T, System.Boolean> | predicate | The predicate to apply to the Maybe{T} instance. |
Returns
| Type | Description |
|---|---|
| Maybe<T> | Either |
Type Parameters
| Name | Description |
|---|---|
| T | The type of value contained by the maybe. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |