示例#1
0
 private static extern int external_call(Functions.AddTwoIntsDelegate func, int i, int j);
示例#2
0
 /// <summary>
 /// Evaluate a function with integer inputs
 /// </summary>
 /// <param name="func">A delegate to a function taking two ints as input and returning an int</param>
 /// <param name="i">An integer</param>
 /// <param name="j">An integer</param>
 /// <returns>The result of the function</returns>
 public int ExternalCall(Functions.AddTwoIntsDelegate func, int i, int j)
 {
     return(external_call(func, i, j));
 }