Table of Contents

Operator implicit operator

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

implicit operator Command(Action)

Defines an implicit conversion from an Action delegate to a Command instance.

public static implicit operator Command(Action execute)

Parameters

execute Action

The action to execute when the command is invoked. Cannot be null.

Returns

Command

Remarks

This operator allows an Action to be used directly where a Command is expected, simplifying command creation in client code.