I guarantee this will come in handy some day
https://github.com/Marqin/simpleCoreCLRHost
This C++ app allows to run custom C# method from compiled C# .dll on Linux and OS X using coreCLR. In our example that C# method runs C++ class methods on C++ objects using pointers and delegates. It’s code is based on example from coreCLR and was done with big help from @janvorli, who patiently answered my questions.