コード例 #1
0
        private static void TestCallBack()
        {
            var callbackHandler = new ActionRefInt(OnCallBackInt);

            TestCallBack(callbackHandler);
        }
コード例 #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
        }
コード例 #3
0
 internal unsafe static extern void TestCallBack([MarshalAs(UnmanagedType.FunctionPtr)] ActionRefInt callBack);
コード例 #4
0
 public static extern void division(ref int first, ref int second, [MarshalAs(UnmanagedType.FunctionPtr)] ActionRefInt callBack);