I need to expose some C++ classes to C# (I am building on Linux, using mono, so COM is not an option)
The evidence I have gathered so far suggests that the best way to approach this is:
- Write a wrapper C++.Net class around the ISO C++ class
- Consume the C++.Net classes from C#
I have the following questions:
- First, is this the "best" way of achieving the goal of exposing ISO C++ classes to C# ?
- So far though, I have not seen any examples that actually show how to do this - can anyone suggest some links, or a code snippet to show how this is done for a dummy class?
- How may I send asynchronous message notifications from the C++ code to the C# code ?. Ideally, I would like to cause the C# class to raise an event, with the received data as an argument