LoginSignup
5
4

More than 5 years have passed since last update.

C# Action<Action,Action>のそれぞれの引数をラムダ式で入れる

Last updated at Posted at 2014-09-22

やりたいこと:Action型の引数を2つ以上持ってるActionを引数でとって、ラムダ式で処理を入れる

void Sum( Action<Action,Action> onComplete )
{
onComplete( ()=> {Action1つ目の処理} , ()=>{Action2つ目の処理} );

}
5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4