Exemplo n.º 1
0
        public void DelegateCallback()
        {
            tested.TestDelegate td = TestDelegateImpl;
            Object del             = Bridge.WrapCLR(td);

            Assert.IsNotNull(del);

            object res = del.Invoke <object>("Invoke", "(ILjava/lang/String;)Lsystem/Object;", 1, "ahoj");

            Assert.AreEqual("ahoj1", res);
        }