I have read a lot of threads about passing strings from dlls to c# programs but a many of them are examples in C++ witch use a lot of C++ features.

I want to make a dll in C (only) and it should pass strings too C# program and vice versa.

I would appriciate any help and code examples.

Thank you.