What are the dangers of making a method virtual?

前端 未结 3 1554
离开以前
离开以前 2021-01-12 11:47

I\'ve been doing some mocking with RhinoMocks and it requires that mocked methods be made virtual. This is fine except we have a custom framework which contains the methods

3条回答
  •  感情败类
    2021-01-12 12:02

    Ayende has a nice treatment of how virtual methods work:

    http://ayende.com/Blog/archive/2007/01/05/HowVirtualMethodsWork.aspx

提交回复
热议问题