as i understand that any .NET program gets compiled to MSIL which is fed to the CLR which compiles it to the assembly code and along with the help of JIT it executes it.
This project will allow you to make unmanaged exports .NET of static methods.