Method Stubs When Implementing an Inteface or inherting from Absract

  • Thread starter OHM \( One Handed Man \)
  • 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
 
J

Jon Skeet [C# MVP]

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.
 
R

Rain

Thank you both for that , I did look for this, but couldt find it

Most gratefull - Cheers.
 
A

Aneesh Pulukkul[MCSD.Net]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top