Force calling the base method from outside a derived class

前端 未结 7 922
野性不改
野性不改 2020-12-10 18:56

I have two classes:

public class MyBase
{
    public virtual void DoMe()
    {

    }
}

public class MyDerived:MyBase
{
    public override void DoMe()
             


        
7条回答
  •  庸人自扰
    2020-12-10 19:26

    Given your restrictions, another possibility exists:

    Download .Net Reflector. Decompile the existing code then make any changes you need to support your situation.

    Of course, review the legality of this before continuing.

提交回复
热议问题