Akkiraju Ivaturi

Akkiraju Ivaturi

  • NA
  • 8.7k
  • 4.2m

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

Aug 12 2012 5:02 AM
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)