4 ms·
I can't resist, so, public static class ActionExtensions { public static void InvokeAsync(this Action<object> target, object context) {
by politician 15y ago
I can't resist, so,
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");