Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick way to insert interface methods to a class in Visual Studio 2005

I know that in Eclipse, if your class implements an interface or extends an abstract class, there is a quick way to add the method definitions to your class. Can this be done with VS2005? How?

like image 901
mcjabberz Avatar asked Dec 29 '25 11:12

mcjabberz


1 Answers

This is language specific but

For C#: Right click on the interface, navigate to Implement Inteface and choose the explicit or implict option. The same menu is available for abstract classes (slightly different name)

There is also a smart tag that will show up on a C# interface / abstract base with the same options. The hot key to get this to popup is "CTRL+."

For VB.Net: Simply hit Enter after the interface name and the methods will be auto-populated.

like image 176
JaredPar Avatar answered Dec 31 '25 19:12

JaredPar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!