title: Export Interface from Dll. C# Delphi VB C++ etc
body: <p>I've created an application in Delphi that is capable of loading plugins from a dll. The dll exports one function which looks like this</p>
  
  <pre><code>function GetPlugin: IPluginInterface;
  </code></pre>
  
  <p>IPluginInterface is a ActiveX Type Library. I figured because I was using a type library I could then use C# or any other language to export IPluginInterface from a dll, though after a bit of googling I found out this is not the case as there is a lot of talk of managed and unmanaged code and reasons why this can't be done. So my question is, am I still able to create a plugin in C# that will export a function like above? If not, what languages are able to do that apart from C++?</p>