hey all,
i'm trying to implement IHierarchyData interface and was wondering how do i
get the vs2005 editor to stub out the required functions?
thanks,
rodchar
Scott M. - 06 Aug 2007 21:12 GMT
Simply add the following just after your class declaration, but after an
inherits statements:
'You either have to import the namespace the IHierarchyData belongs to
or fully qualifiy it on the next line
Implements IHierarchyData
When you hit [ENTER] at the end of typing that line, VS 2005 with create all
the stubs you need.
-Scott
> hey all,
> i'm trying to implement IHierarchyData interface and was wondering how do
[quoted text clipped - 3 lines]
> thanks,
> rodchar
Nicholas Paldino [.NET/C# MVP] - 06 Aug 2007 21:17 GMT
Of course, it should be mentioned that this solution is VB.NET specific,
and will not work for C#.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Simply add the following just after your class declaration, but after an
> inherits statements:
[quoted text clipped - 15 lines]
>> thanks,
>> rodchar
Nicholas Paldino [.NET/C# MVP] - 06 Aug 2007 21:12 GMT
Rodchar,
Right click the interface name in the class definition and select
"implement interface". From there, a submenu will appear which will allow
you to implement the stubs explicitly or implicitly.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> hey all,
> i'm trying to implement IHierarchyData interface and was wondering how do
[quoted text clipped - 3 lines]
> thanks,
> rodchar
rodchar - 07 Aug 2007 21:24 GMT
what if this was an inheritance instead of an interface would vs2005 c# still
be able to stub out required members?
> Rodchar,
>
[quoted text clipped - 9 lines]
> > thanks,
> > rodchar
Jon Skeet [C# MVP] - 07 Aug 2007 22:12 GMT
> what if this was an inheritance instead of an interface would vs2005 c# still
> be able to stub out required members?
I think it can do so for abstract members at least, yes.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
rodchar - 06 Aug 2007 21:18 GMT
thanks everyone for the helpful tips.
> hey all,
> i'm trying to implement IHierarchyData interface and was wondering how do i
> get the vs2005 editor to stub out the required functions?
>
> thanks,
> rodchar