Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

.NET class hierarchy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GeezerButler - 02 Jul 2007 00:06 GMT
Hi,
is there any app which can show the class hierarchy of all classes/
interfaces in .NET?
I need this to find all classes that implement the IListSource
interface?
Damien - 02 Jul 2007 06:52 GMT
> Hi,
> is there any app which can show the class hierarchy of all classes/
> interfaces in .NET?
> I need this to find all classes that implement the IListSource
> interface?

The documentation for 1.1 says that it's implemented by DataSet and
DataTable.

BUT - A major point (I originally wrote "the whole point", but decided
to revise) of Interfaces is to abstract away from which class(es)
implement said interface.

If some (unknown) program passes you an IListSource, how do you know
that that program doesn't contain a class that implements IListSource
itself?

Damien
Pramod Anchuparayil - 03 Jul 2007 20:12 GMT
> Hi,
> is there any app which can show the class hierarchy of all classes/
> interfaces in .NET?
> I need this to find all classes that implement the IListSource
> interface?

look for .NET Reflector @ http://www.aisto.com/roeder/DotNet/

- Pramod Anchuparayil
Damien - 04 Jul 2007 11:17 GMT
On Jul 3, 8:12 pm, Pramod Anchuparayil <pramod.anchupara...@gmail.com>
wrote:

> > Hi,
> > is there any app which can show the class hierarchy of all classes/
[quoted text clipped - 5 lines]
>
> - Pramod Anchuparayil

Reflector is a very useful tool, and I almost suggested it myself, but
I can't find anywhere that I can search (all loaded assemblies/all
assemblies in the universe) to discover which classes implement a
particular interface (e.g. the Analyze will tell you where the
interface is consumed, but not implemented). OTOH, I may have missed
something - Reflector always continues to surpirse me with just how
good it is.

Damien
Michael Nemtsev - 08 Jul 2007 06:24 GMT
Hello Damien,

See "used by" and "derived by" in the reflector.

---
WBR,  Michael  Nemtsev [C# MVP].  
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

D> On Jul 3, 8:12 pm, Pramod Anchuparayil
D> <pramod.anchupara...@gmail.com> wrote:
D>

>>> Hi,
>>> is there any app which can show the class hierarchy of all classes/
[quoted text clipped - 4 lines]
>>
>> - Pramod Anchuparayil

D> Reflector is a very useful tool, and I almost suggested it myself,
D> but I can't find anywhere that I can search (all loaded
D> assemblies/all assemblies in the universe) to discover which classes
D> implement a particular interface (e.g. the Analyze will tell you
D> where the interface is consumed, but not implemented). OTOH, I may
D> have missed something - Reflector always continues to surpirse me
D> with just how good it is.
D>
D> Damien
D>
Damien - 08 Jul 2007 12:04 GMT
> Hello Damien,
>
[quoted text clipped - 7 lines]
> "The greatest danger for most of us is not that our aim is too high and we
> miss it, but that it is too low and we reach it" (c) Michelangelo

I'm looking everywhere I can at the IListSource interface (which the
OP was interested in), in both 1.1 and 2.0. I can't find a Derived By
anywhere. I can find Used By, but that tells me which functions accept
an argument of type IListSource. Exposed By (which I was kindof hoping
would give the information) is empty in both cases, even if I have
System.Data loaded as well. I'm guessing Exposed By only works within
the same Assembly? (Reflector version 5.0.21.0)

Damien
Michael Nemtsev - 08 Jul 2007 12:38 GMT
Hello Damien,

Just find the "IListSource" in Reflector, open expand it and there u will
see "Derived types"

---
WBR,  Michael  Nemtsev [C# MVP].  
[.Net Tips & Tricks]: http://msmvps.com/blogs/laflour/pages/net-tips-amp-tricks.aspx
My blog: http://spaces.live.com/laflour/       Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

D> On Jul 8, 6:24 am, Michael Nemtsev <nemt...@msn.com> wrote:
D>
>> Hello Damien,
>>
[quoted text clipped - 7 lines]
>> and we miss it, but that it is too low and we reach it" (c)
>> Michelangelo

D> I'm looking everywhere I can at the IListSource interface (which the
D> OP was interested in), in both 1.1 and 2.0. I can't find a Derived By
D> anywhere. I can find Used By, but that tells me which functions
D> accept an argument of type IListSource. Exposed By (which I was
D> kindof hoping would give the information) is empty in both cases,
D> even if I have System.Data loaded as well. I'm guessing Exposed By
D> only works within the same Assembly? (Reflector version 5.0.21.0)
D>
D> Damien
D>
Damien - 09 Jul 2007 07:45 GMT
> Hello Damien,
>
> Just find the "IListSource" in Reflector, open expand it and there u will
> see "Derived types"

Ah yes, I see now. I'd tried that before, but because I hadn't had
System.Data.dll loaded at the same time, it was empty.

Thanks for pointing me in the right direction.

Damien

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.