2008-09-23から1日間の記事一覧
下記はListクラスのメンバForEachにおける使い方 void MyAction(int x) { Console.WriteLine(x); } int[] data = { 9, 2, 12, 17, 8, 1, 19 }; List list = new List(data); // 使い方その1 Action myActionDelegate = new Action(MyAction); list.ForEach(m…
下記はListクラスのメンバForEachにおける使い方 void MyAction(int x) { Console.WriteLine(x); } int[] data = { 9, 2, 12, 17, 8, 1, 19 }; List list = new List(data); // 使い方その1 Action myActionDelegate = new Action(MyAction); list.ForEach(m…