在我的一个班子的施工人员中,我叫一名虚拟成员。 是否应该或不应该这样做,是我的问题的范畴。
WORKS (can call in my constructor):
protected void DoSomething();
protected virtual void DoSomething();
DOES NOT 工作
protected override void DoSomething();
The DOES NOT 工作 part is located in the same library, the derived class has the same visibility, etc. As soon as I override the (virtual or abstract) DoSomething defined in class A in my Class B, I get a MissingMethodException as soon as the method is executed.
Does anyone have an idea why?