Say I have an asynchronous library written in C ++ with an interface similar to this:
class connection { public: boost::signal< void() > sig_connection_made; boost::signal< void(const std::string&) > sig_error; void connect(const std::string& host, const std::string& port); };
which I want to wrap in C #. Does anyone know a way using SWIG or something similar that will allow me to associate signals with C # delegates?
source share