action2
September 14, 2025 ยท View on GitHub
This example simplifies this code by instantiating the xtd::action delegate instead of explicitly defining a new delegate and assigning a named method to it.
Sources
Build and run
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run
- If action1 is called without param
Output
Hello, World!
- If Action1 is called with any param
Output
Windows :


macOS :


Gnome :

