If you don't mind too deeply, you can use the native Java interface to generate code to forward calls from Java to C # and vice versa. You will need to build a "bridge" in c / C ++ (C ++ is usually a bit simpler).
This way you get communication in the process, which is the fastest way to work :-)
source share