Hi,

I am using directors to call C# methods from c++ dll and it works fine.
But I need to pass to the C# method pointer to member method. Is it somehow possible using SWIG?

Example:

C++ code:

class Api
{
    virtual void Load(void (A::*onLoad)(std::string)){}
};

class A
{
    public:
         void OnLoad(std::string);
};

C# code:

public class CSharpApi : Api
{
     public override void Load(void (A::*onLoad)(std::string))
     {
           (*onLoad)("test");
     }
 }

Thanks

Petr