Reflection alternative for switch on enum in order to select namespace/class
- by Am
Hi,
I have an interface named IHarvester.
There are 3 implementations of that interface, each under their own namespace:
Google
Yahoo
Bing
A HarvesterManager uses the given harvester. It knows the interface and all 3 implementations.
I want some way of letting the class user say in which harvester it wants to use. And in the code select that…