Auto-generate an interface implementation in C#?

前端 未结 3 964
情深已故
情深已故 2020-12-16 11:57

I know this is quite lazy but, is there any way on Visual C# 2010 Express to auto-generate an interface implementation? (I don\'t mean at runtime but at design time, like a

3条回答
  •  没有蜡笔的小新
    2020-12-16 12:26

    In Microsoft Visual Basic 2010 Express, I just put the cursor to the end of the Implements line and press Enter - then the stubs are generated automatically

    Public Class Class1
      Implements IMyInterface1
    

    move the cursor to the end of the word IMyInterface1 and press Enter

提交回复
热议问题