views:

899

answers:

2

I've switch from VB.NET to C# several months ago, while there are a lot of features I really like in C#, believe it or not, there are some features that I really miss from VB.NET.

One of those features is whenever I implemented an interface in VB.NET the stub properties and methods were automatically added for me.

Is there any way to do this in C#?

+5  A: 

Right click on the new class that implements the interface, click 'Implement Interface' then click on either of the following two:

Implement Interface: Implements stub props and methods for you.

Implement Interface Explicitly: Implements stub props and methods for you, but also explicitly names the interface the stub is for.

David
Thank you! Thank you!
mattruma
+3  A: 

Also you can use the shortkey CTRL + ALT + F10 and then hit ENTER. Or you use CTRL + > :-)

Mariusz
Totally forgot about that shortcut, and I'm the one in my group that goes crazy with them. Thanks Mariusz.
David
You're welcome ;-)
Mariusz