private static void TestCallBack()
        {
            var callbackHandler = new ActionRefInt(OnCallBackInt);

            TestCallBack(callbackHandler);
        }
Example #2
0
        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);
Example #4
0
 public static extern void division(ref int first, ref int second, [MarshalAs(UnmanagedType.FunctionPtr)] ActionRefInt callBack);