I want to load only some classes from a given dll. The problem is the following:
I have the following of dll files.
Dll 1:
Namespace:
- Class 1
- Class 2
Dll 2:
Namespace:
- Class 2
- Class 3
As shown in the example above, it is possible and likely to happen that I have 2 or even more dlls with the same classes in it. (Note that the namespaces are the same)
Now I thought of the following:
- Open a dll in a Temp AppDomain
- Check which classes we do not know
- Move needed classes to Standard Appdomain
- Unload Temp Appdomain
Is there any way to do something like that?