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
{
......
return subclasses list;
}


VulpesRank #55 · 29.2K reputationPosted Aug 12, 2012, 6:22 AM EDT
Now create a console app from the following code and place the dll in the executable's folder:
The output should be:
Notice that ClassD is not returned because, whilst it ultimately derives from ClassA (via ClassC), it's not a direct sub-class of it.
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Aug 12, 2012, 12:14 PM EDT