tags:

views:

145

answers:

3

Recently I implemented an interface which had some 130 members that i should implement (C#, but i think thats irrelevant).

How can i generate the stubs for all those automatically, in VS 2008

Edit:If its not possible in VS 2008, i've also installed Coderush Express, can some one guide me on how to do that with CR Express ?

+3  A: 

Left click on the interface, select "implement interface."

public class Whatever : IXmlSerializable

You need to click near the "I" that has a little underline.

Also, other tools such as Resharper and DevExpress do it for you too.

Are you using VS.NET Professional?

Kris Krause
thanks, that was lightening fast
Vivek Bernard
yes I'm using VS 2008 Pro
Vivek Bernard
If you're into keyboard shortcuts, place your cursor on the interface name in the class delcaration, and press Control+Period and then hit Enter :)
Scott Anderson
+2  A: 

In Visual Studio, if you click on the Interface you're implementing, you'll see a little menu option. Click on that and select "Implement Interface". This should produce all the stubs.

keyboardP
+1  A: 
 public class YourClassName : IComparable

You can also right click on the interface --> Implement Interface --> Implement Interface.

Does the same as Kris and Tenaciouslmpy says.

Eclipsed4utoo