According to the grammar int the OP, you need ()'s, no?
new Thread(() => { doStuff(); }).Start();
Or can they be elided in C# or Scala? new Thread(() => { doStuff(); }).Start();
Or can they be elided in C# or Scala? public static class ActionExtensions
{
public static void InvokeAsync(this Action<object> target, object context)
{
new Thread(obj => target(obj)).Start(context);
}
}
((Action<object>) (Console.WriteLine)).InvokeAsync("Hello, World");