2 ms·
I have once made something remotely similar, to interop between C++ and C#: https://github.com/Const-me/ComLightInterop https://github.com/Const-me/ComLightInte
by Const-me 3y ago
I have once made something remotely similar, to interop between C++ and C#: https://github.com/Const-me/ComLightInterop https://github.com/Const-me/ComLightInterop
I took different approach. Because I only needed to support these two languages, there’s no separate interface definition language, and no code generator for interfaces. Instead, users are expected to write both language projections manually.
Then there’s a runtime code generator on the .NET side of the interop which builds runtime callable proxy types for interfaces implemented in C++, also virtual tables for C# objects consumed by C++.