Visual Studio - automatically implement all inherited methods from an interface

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

    To automatically implement all inherited methods from an interface:

    C# : Just right click on interface(Prefix with 'I') name and select implement interface option.

    VB.NET : Just point your cursor after interface(Prefix with 'I') name and hit enter.

    Enjoy!!!

提交回复
热议问题