M
mookid8000
Hi group!
Is it possible to scan an assembly *which has NOT been added as a
reference* for types, and dynamically create instances of the loaded
types?
I have a program, MyProgram.exe, which at runtime uses
Asseembly.LoadFile(...) to load an assembly, MyAssembly.dll. When
MyAssembly.dll is added as a reference to the MyProgram project,
serialization and de-serialization works lige a charm.
However, when I remove the reference to MyAssembly.dll in the MyProgram
project, I get an exception upon de-serialization.
Is there something I can do which is like "adding an assembly as a
reference at runtime"?
The best,
Mogens
Is it possible to scan an assembly *which has NOT been added as a
reference* for types, and dynamically create instances of the loaded
types?
I have a program, MyProgram.exe, which at runtime uses
Asseembly.LoadFile(...) to load an assembly, MyAssembly.dll. When
MyAssembly.dll is added as a reference to the MyProgram project,
serialization and de-serialization works lige a charm.
However, when I remove the reference to MyAssembly.dll in the MyProgram
project, I get an exception upon de-serialization.
Is there something I can do which is like "adding an assembly as a
reference at runtime"?
The best,
Mogens