Automatically generate implementations of base class methods

后端 未结 7 824
我在风中等你
我在风中等你 2021-02-02 07:33

Is there a shortcut of some kind in C# (VS 2008) to automatically implement the virtual and abstract base class methods in a derived class?

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 08:03

    Don't think this existed when the original question was asked, but at least as of VS 2013, you can automatically create stubs for abstract methods & properties. Just right click on the abstract class name (in your class definition) and pick "Implement Abstract Class". Just like CMS showed with automatically implementing interfaces.

提交回复
热议问题