So if I have an instance of
System.Reflection.Assembly
and I have the following model:
class Person {}
class Student : Person {}
class Freshman : Student {}
class Employee : Person {}
class PersonList : ArrayList {}
class StudentList : PersonList {}
How can I enumerate the assembly's types to get a reference to only the Person and PersonList types?
To be clear: I don't want to ever explicitly specify the Person or PersonList type during this lookup. Person and PersonList are just the root type defined in the assembly in question for this example. I'm shooting for a general way to enumerate all the root types for a given assembly.
Thank for your time :)