I have an interesting assembly stack that I want to build:
General assembly (C # or C ++ - CLI)
public class MyBase
{
public void MethodA()
{ ... }
private void MethodB()
{ ... }
protected virtual MethodC()
{ ... }
}
Test code subscribers (all C ++ - CLI)
public class MySpecific : public MyBase{
protected: override MethodC();
};
Test Simulator (C #)
MySpecific obj = new MySpecific();
obj.MethodC();
While assembly 1 can be C ++ - CLI, to simplify the task, I would really like to save assembly 3 in C #. This is basically an exercise to make sure inheritance can be done in any direction, but I also have a real case where this stack is useful.
The first problem that I find is that the C ++ - CLI assembly does not compile because it does not recognize MyBase as a class, although I have a reference to assembly 1 and what looks like its own namespace.
How to write classes that carry the language?