Action myAction = () => Console.WriteLine("Hello World!"); myAction.BeginInvoke(null, null);
ActionThis code sets up an Action delegate that takes an argument specifying a message to write to the console. It then uses `BeginInvoke` to asynchronously execute the delegate with the argument "Hello World!". These examples use the standard System namespace, so no additional package libraries are required.myAction = (message) => Console.WriteLine(message); myAction.BeginInvoke("Hello World!", null, null);