title: Load a method from another assembly using Mono.Cecil
body: <p>My code uses Mono.Cecil to rewrite IL code of an assembly. I need to import a method that belongs to another assembly which is provided as a reference. Therefore it is throwing error in the Assembly.write method. </p>
  
  <p>Method is defined in another module and needs to be imported.</p>
  
  <p>I need to import whole class from another assembly into the main module.</p>
  
  <p>Any ideas how to fix this?</p>