private static void TestCallBack() { var callbackHandler = new ActionRefInt(OnCallBackInt); TestCallBack(callbackHandler); }
public ActionRefFloat newCallBackHandler; // This is for a function not yet implemented public Fortan() { callbackHandler = new ActionRefInt(OnUpdateProgress); newCallBackHandler = new ActionRefFloat(NewOnUpdateProgress); // For future function }
internal unsafe static extern void TestCallBack([MarshalAs(UnmanagedType.FunctionPtr)] ActionRefInt callBack);
public static extern void division(ref int first, ref int second, [MarshalAs(UnmanagedType.FunctionPtr)] ActionRefInt callBack);