Automatically generate implementations of base class methods

后端 未结 7 822
我在风中等你
我在风中等你 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:16

    Maybe you want all inheriting/implementing classes to implement a new defined abstract method.

    1. Go to one of the inheriting/implementing classes
    2. use smart tag menu ctrl+.
    3. implement abstract class / interface
    4. watch for options at the bottom of the popup window "Project" or "Solution"

提交回复
热议问题