Visual Studio - automatically implement all inherited methods from an interface

后端 未结 5 911
借酒劲吻你
借酒劲吻你 2021-02-18 21:19

Let\'s say we have a class called MyClass.

public class MyClass

We also have an interface like so:

public interface MyInterface         


        
5条回答
  •  暖寄归人
    2021-02-18 21:55

    You can simply use shortcut "CTR+." to do that. Position your cursor on MyInterface of "public class MyClass: MyInterface" line, and press "CTR+.", a context menu will show up with "Implement Interface ...".

提交回复
热议问题