void または int/string/bool(値を返す) を動的に渡したい。
Delay(MyVoid);//I wont to execute a delay here, after the delay it will execute the the param/void like so...
public static void MyVoid()
{
MessageBox.Show("The void has started!");
}
public async Task MyAsyncMethod(void V)
{
await Task.Delay(2000);
V()
}
ps、デリゲートを使用してみましたが、パラメーターとして使用できません。