コード例 #1
0
        public void BlockCallback()
        {
            using (var obj = new BlockCallbackTester()) {
                obj.CallClassCallback();

                obj.TestObject = new BlockCallbackClass();
                obj.CallOptionalCallback();
                obj.CallRequiredCallback();

                obj.TestObject = new BlockCallbackClassExplicit();
                obj.CallOptionalCallback();
                obj.CallRequiredCallback();
            }
        }
コード例 #2
0
        public void BlockCallback()
        {
            using (var obj = new BlockCallbackTester()) {
                obj.CallClassCallback();

                obj.TestObject = new BlockCallbackClass();
                obj.CallOptionalCallback();
                obj.CallRequiredCallback();
                ObjCBlockTester.TestClass = new Class(typeof(BlockCallbackClass));
                ObjCBlockTester.CallRequiredStaticCallback();
                ObjCBlockTester.CallOptionalStaticCallback();

                obj.TestObject = new BlockCallbackClassExplicit();
                obj.CallOptionalCallback();
                obj.CallRequiredCallback();
                ObjCBlockTester.TestClass = new Class(typeof(BlockCallbackClassExplicit));
                ObjCBlockTester.CallRequiredStaticCallback();
                ObjCBlockTester.CallOptionalStaticCallback();
            }
        }