How do I use SWIG to generate a C# interface (or at least a C# mock-able base class) from C++ using SWIG?
Given:
C++:
class IWidget
{
public:
virtual void Flob() = 0;
};
class Widget : public IWidget
{
public:
void Flob() {};
};
I would like to output C#:
public interface IWidget
{
void Flob();
}
public class Widget : IWidget
{...}
Note: Solution does not have to be an interface, but I do need to be able to use mocking frameworks such as Moq or Rhino.Mocks to mock out the base of the C# Widget class. My attempts only yielded generated C# with no public constructors.