Welcome to MSDN Blogs Sign in | Join | Help

Visual C# 2003 "Implement Interface" feature

Just discovered a great tip for Visual C# 2003.

If you implement an interface (or event/delegate) on your class and don't want to type all the methods, just type the interface name in your class derivation list and Intellisense will display a tooltip saying “Press TAB to insert stubs for <interfacename>”. Pressing 'TAB' will insert stub method implemenations into your class. Very cool timesaver!

Thanks go to Kevin and Jason for pointing this out to me.

Published Wednesday, June 16, 2004 8:06 PM by markda
Filed under:

Comments

# Mark Davis discusses a C# feature....

Thursday, June 17, 2004 12:30 AM by Code/Tea/Etc...

# re: Visual C# 2003 "Implement Interface" feature

Thursday, June 17, 2004 3:30 AM by Cyrus Najmabadi
Mark: In 2k3 we required you to type in the type name and then hit tab immediately after. In whidbey (2k5) we've made it so that you can go to the interface declaration at any time and get a smart tag allowing you to implement the interface either implicitly or explicitly.

# re: Visual C# 2003 "Implement Interface" feature

Thursday, June 17, 2004 3:59 PM by Johnny
sorry it took you so long to figure that out. maybe read the release notes before using the app.

# re: Visual C# 2003 "Implement Interface" feature

Sunday, June 20, 2004 4:05 AM by OF
The last comment was not justified, with all due respect.

Some of us don't have the time to read the release notes because we work in projects with very tough deadlines.
If someone discovers a feature and akes the time and effort to shre it then it's plausible and not a negative thing.
Anonymous comments are disabled
 
Page view tracker