2
Answers

I would like to list all the sub classes of a given class name in a DLL using reflection in C#.

Hi my requirement is something like this:

1. I would load an assembly from a specific location (LoadAssemlyFrom(DLL)).
2. Now I will provide class name to a method as a parameter and that method should return me all the sub classes list.

Something like below:

IList<T> GetAllSubClasses(string parentClassName)
{
......

return subclasses list;
}
Answers (2)