[This is preliminary documentation and is subject to change.]

Creates an expression listener to be used by the [!:HandlerCollection.Add(CommandBase)]

Namespace:  Firefly.Box
Assembly:  Firefly.Box (in Firefly.Box.dll) Version: 3.4.23.6473 (3.4.23.6473)

Syntax

C#
public static Command Expression(
	Func<bool> condition
)
Visual Basic (Declaration)
Public Shared Function Expression ( _
	condition As Func(Of Boolean) _
) As Command
Visual C++
public:
static Command^ Expression(
	Func<bool>^ condition
)

Parameters

condition
Type: System..::.Func<(Of <(Boolean>)>)
the condition expression

Return Value

A [!:CommandBase] that is used by the [!:HandlerCollection.Add(CommandBase)]

Remarks

Whenever the condition evaluates to true, the handler's Invokes event will be raised

See Also