Displaying all subclasses of a class, or implementors of an interface

A

Andrew G. J. Fung

Is there a way to get a nice listing of the subclasses of a base
class, or the implementors of an interface? I don't want to a
text-based codebase search (e.g. grep with a particular regex), I'm
looking for something more accurate like a browser in VS.Net or the
"All Known Implementing Classes" section of a JavaDoc.
This is C# btw.

I've tried NDoc to convert the XML docs from csc to JavaDoc, but no
luck there.

Thanks!
Andrew.
 
J

Jon Skeet

Andrew G. J. Fung said:
Is there a way to get a nice listing of the subclasses of a base
class, or the implementors of an interface? I don't want to a
text-based codebase search (e.g. grep with a particular regex), I'm
looking for something more accurate like a browser in VS.Net or the
"All Known Implementing Classes" section of a JavaDoc.
This is C# btw.

Well, for any assembly you can iterate through all the types within
that assembly, and check their inheritence etc. You can't do it in a
totally general sense, because you don't know where all the assemblies
are.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top