Click or drag to resize

MaybeTIf Method

Checks the condition and returns an empty Maybe if the condition fails.

[NotNull]

Namespace:  TomsToolbox.Core
Assembly:  TomsToolbox.Core (in TomsToolbox.Core.dll) Version: 1.0.75.0
Syntax
public Maybe<T> If(
	Func<T, bool> condition
)

Parameters

condition
Type: SystemFuncT, Boolean
The condition.

[NotNull]

Return Value

Type: MaybeT
this or an empty maybe.
See Also