I am working on a software research project that is entirely in C#, however now we want to have a maya plugin that utilizes some of the functionality from the C# code.

Maya expects an unmanaged dll, which is fine i don't mind writting that.

However, i need to make hooks to the C# code and vice versa, i have no problems accessing my unmanaged dll from C# using InteropServices,  but i do not know how to access the managed code from the unmanaged C++, any hints?

I am sure this is possible, but i have never done it.

If anyone has any suggestions for a purely managed solution, i would be thankful