CommandExpression Method

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

Definition

Namespace: Firefly.Box
Assembly: Firefly.Box (in Firefly.Box.dll) Version: debug-master-v:33791
C#
public static Command Expression(
	Func<bool> condition
)

Parameters

condition  FuncBoolean
the condition expression

Return Value

Command
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