title: How to calling a function in a .net dll through an interface loaded through reflection
body: <p>Hello I'll try my best to explain this.</p>
  
  <p>Basically, I am loading a library through reflection using the Assembly.LoadFile.</p>
  
  <p>From there I have an interface IFace that defines a method "GetStrings" that returns an array of strings.</p>
  
  <p>The dynamically loaded DLL has a class named "Class1" that implements IFace.</p>
  
  <p>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:</p>
  
  <pre><code>IFace obj = (IFace)ReflectionAssembly.Class1;
  string[] strs = obj.GetStrings();
  </code></pre>
  
  <p>Any ideas? </p>