Automatic Interface skeleton's, the poor man's approach...
Since VS.NET (Not 2003) does not automagically shove the skeleton of an interface into our code for us when we state that we are implementing it, the poor man's approach to doing so (with out macro's or the other fancy cr*p) would be to open up Reflector, finding the interface, and hit space. It should produce the outline in the right pane for you. Copy and paste into your class, now all you gotta do is finish the implementation. Lastly since Reflector supports both C# and VB.NET it works well for both sides of the fence.
Back to work...
2 Comments
Comments have been disabled for this content.
G. Andrew Duthie said
Actually, VS.NET 2002 can do this for Visual Basic .NET...
When you implement an interface in a VB.NET class, you can use the left-hand dropdown to select the interface you've implemented, then use the right-hand dropdown to select the members that need to be implemented. When selected, VS will automatically insert the skeleton code for you.
Dan Golick said
Actually it does automatically generate the interface for you. In C# editor a smart-lik comes up. You can also go to Class View and open of the class- goto Bases and intefaces select the interface, right-click and Add "Implement interface"