Is there any way to view all of the sub classes in VC#?

  • Thread starter Thread starter Zifu Yang
  • Start date Start date
Z

Zifu Yang

For example, can we easily know which classes are subclasses of
System.Exception?
I didn't find such feature in VC#?
 
Zifu Yang said:
For example, can we easily know which classes are subclasses of
System.Exception?
I didn't find such feature in VC#?

Do you mean programatically, or in terms of documentation? MSDN lists
derived classes.

However, at execution time it will depend on which assemblies you're
interested in. It's easy enough to write a method which will find all
the derived classes within a given set of assemblies, using reflection.
 
For example, can we easily know which classes are subclasses of
System.Exception?
I didn't find such feature in VC#?

Download reflector, hit the magnifying glass icon to search and find
Exception. Open the node and it will show you base classes and derived
classes for the assemblies loaded. By default that's most of the
framework :)
 

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

Back
Top