You can check the latest version of mono and C # Shell (although I would personally do an exe that calls the functions you want from the DLL).
http://www.mono-project.com/CsharpRepl
"At startup, the csharp shell will load any C # script files and precompiled libraries (ending in .dll) that are located in the ~ / .config / csharp directory (on Windows this is the environment value. GetFolderPath (Environment.SpecialFolder.ApplicationData)).
Assemblies are loaded first, and then scripts are executed. This allows your scripts to depend on the code defined in assemblies.
C # script files are simply files containing instructions and expressions; they cannot contain complete class definitions that must be saved and precompiled in DLL files. "
Then you can do things like:
csharp> using System; csharp> Console.WriteLine ("hello"); hello csharp>
source share