Method Stubs When Implementing an Inteface or inherting from Absract

  • Thread starter Thread starter OHM \( One Handed Man \)
  • Start date Start date
O

OHM \( One Handed Man \)

Is it possible to have visual studio add the stubs for you when you
implement an interface or inherit from a an abstract class automatically.

I know this was a feature in vb.net but I can seem to work out how to do it
in C#

Thanks
 
OHM ( One Handed Man ) said:
Is it possible to have visual studio add the stubs for you when you
implement an interface or inherit from a an abstract class automatically.

I know this was a feature in vb.net but I can seem to work out how to do it
in C#

Put the cursor anywhere in the interface name, and hit Ctrl and period.
 
Thank you both for that , I did look for this, but couldt find it

Most gratefull - Cheers.
 
Thank you both for that , I did look for this, but couldt find it

Most gratefull - Cheers.








- Show quoted text -

Once you type the interface name you should be getting the smart tag
on first letter, and if you click on that we get options(or use
shortcut key Shift+Alt+F10 - Implement interface and Explicitly
Implement interface - method stubs will be generated.
 
Back
Top