Visual Studio - automatically implement all inherited methods from an interface

后端 未结 5 907
借酒劲吻你
借酒劲吻你 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:45

    In Visual Studio 2013 you can right click on the interface and select "Implement Interface". It will generate all the methods for you with the NotImplmentedException.

提交回复
热议问题