コード例 #1
0
 //可以定义委托类型的参数
 static int UseDelegate(MathOptDelegate option, int x, int y)
 {
     return(option(x, y));
 }
コード例 #2
0
 static int UseDelegate(MathOptDelegate mathOptDel, int value1, int value2)
 {
     return(mathOptDel(value1, value2));
 }