title: Is is possible to export functions from a C# DLL like in VS C++?
body: <p>In VS C/C++ you could use <code>extern "C" __declspec(dllexport) -function declaration-</code>. </p>
  
  <p>How do I accomplish this in a C# dll? Is there C# code equivalent to the above code?</p>
  
  <p><b>Edit: More info</b></p>
  
  <p>I am trying to create an add in for Notepad++ and I want to use C#, but the common way I've seen so far is to use legacy C++ code with the above call to export a few of the functions that Notepad++ expects to import and call. There is an example app using C#, but this still requires a loader DLL, which I assume from the comments/answers below is the only way for C#.</p>