Hello I'll try my best to explain this.
Basically, I am loading a library through reflection using the Assembly.LoadFile.
From there I have an interface IFace that defines a method "GetStrings" that returns an array of strings.
The dynamically loaded DLL has a class named "Class1" that implements IFace.
I need a way to call this interfaced method through the dynamically loaded lib. I'd like to keep it tightly coupled, which leaves me wondering what to do. I know I can use MethodInvoker to call the method, but I'm trying to find a way I can do something like this:
IFace obj = (IFace)ReflectionAssembly.Class1;
string[] strs = obj.GetStrings();
Any ideas?