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

  • Thread starter Thread starter Andrew G. J. Fung
  • Start date Start date
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.
 
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.
 
Back
Top