How to pass a Java callable to C#?
Doug Blank <[email protected]>
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CAAusYCikBMwHt=xGyvzsK9-gD8hHrg3z5StGKj8o+UftTQN_Pg@mail.gmail.com> |
I am doing some refining on the DynamicJava interpreter written in Java
that is running under Mono [1]. (C# libraries are made available to the
interpreted Java through ikvmstub, and the Java interpreter is running by
being compiled with ikvmc). Everything is working very well, but one thing
I would like to do is be able to pass a Java callback to a C# function.
The C# code looks like this (although I could change it in any manner):
public class Widget {
public void on_click(System.Func<object,object> function) {
}
}
In general, how would a Java program register a callback to the C#? I can
write an interface on either the Java side, or the C# side.
Thanks for any suggestions,
-Doug
[1] -
https://bitbucket.org/ipre/calico/src/master/languages/Java/dynamicjava/
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers