I have already embedded a .Net runtime(CoreCLR) in my native C++ app. as this tutorial did: https://learn.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting
Now, I can call C#(managed) from C++(unmanaged). But how to call C++ from C# in this situation. I mean, is there any way to let both sides communicate each other?
------ More Details: -------
I'm developing a cross-platform C++ app (supporting Win/Mac/Linux). .Net Core is a good choice to be the script.
but how to communicate with each other ? (not just single side)
If "C++_app_with_C#_libs" is not suitable, I guess the only way is "C#_app_with_C++_libs"...(is that right?)
As far as I know, the Mono can achieve my target. cause Mono has a special tool:
[DllImport ("__Internal", EntryPoint="EnterPoint")]
which can find symbol in the current executable image. There is no "__Internal" in .Net Core, right?
After all, You know, it's not a good idea to choose Mono in 2019.