I have a method in a C# assembly like this:
public virtual void RefMeth(ref bool hi) {}
And I want to override it with a VS.Net 2003 Managed C++ method like this:
void RefMeth(bool __gc& hi)
However, when I run, the override never happens. Moreover, if I explicitly
put the virtual keyword on the C++ declaration for RefMeth, and look at the
generated IL, I see that the method has the newslot bit turned on.
I'm guessing that the compiler is getting confused due to the modopt that is
being applied to the C++ method signature.
What do I do to make the override work?