title: Run C# code from Java and vice-versa
body: <p>I have a game server which is made in Java. I want to make a plugin system that loads a .NET DLL and calls events / functions inside that DLL, then inside those I'll have to call functions in the game server (Java). The only part that is giving me trouble at the moment is how to interface java and a .NET dll.</p>
  
  <p>I've been searching and found some things but they were all based on products and I want to make my own interface for that. Ah, not to mention it needs to have high performance, the code will be called a lot of times in a second if it has to. Could someone point or give-me ideas how could I work this out?</p>
  
  <p>EDIT: </p>
  
  <p>To make it more explicit:</p>
  
  <ol>
  <li>Game Server (Java application) calls a function in .NET dll</li>
  <li>The .NET function just called by java, calls multiple functions from Game Server (Java Application).</li>
  </ol>