Override an overridden method (C#)

后端 未结 6 891
梦如初夏
梦如初夏 2021-02-03 17:47

I\'m trying to override an overridden method (if that makes sense!) in C#.

I have a scenario similar to the below, but when I have a breakpoint in the SampleMethod() in

6条回答
  •  不知归路
    2021-02-03 18:44

    Without seeing the code that calls SampleMethod, my guess would be that you have an object of type B and call SampleMethod on that.

提交回复
热议问题