回答編集履歴
1
typo
answer
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
```C#
|
8
8
|
private void addContextMenu(ContextMenu contextMenu, string menu, Action<S,E> method) {
|
9
9
|
```
|
10
|
-
Action<S, E>は型Sと型Eを引数とする戻り値なしの関数を定義しています。(適宜型を変更してい
|
10
|
+
Action<S, E>は型Sと型Eを引数とする戻り値なしの関数を定義しています。(適宜型を変更してください。)ただし、method(s, e)は実行時の変数の値になるので注意が必要です。
|
11
11
|
|
12
12
|
詳しくは下記
|
13
13
|
http://ufcpp.net/study/csharp/sp_delegate.html?key=anonymous#anonymous
|