2
Answers

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

Photo of Akkiraju Ivaturi

Akkiraju Ivaturi

12y
1.4k
1
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)