How can I get all the inherited classes of a base class? [duplicate]
问题 This question already has answers here : How to find all the types in an Assembly that Inherit from a Specific Type C# (4 answers) Get all derived types of a type (8 answers) Closed 6 years ago . class Foo { } class Foo1 : Foo { } class Foo2 : Foo { } How would I be able to get all the classes that use Foo as a base class? The inherited classes aren't necessary in the same assembly. 回答1: This is not fast, but as long as Foo is a concrete type (not an interface), then it should work. Foo