.NET class hierarchy

  • Thread starter Thread starter GeezerButler
  • Start date Start date
G

GeezerButler

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?
 
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
 
look for .NET Reflector @http://www.aisto.com/roeder/DotNet/

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

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> 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>
 
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
 
Back
Top