title: C# load external dll with embedded images
body: <p>I've a tiny application with several icons. I decided to put them in a separated DLL, so within my solution, I created a project and I've embedded those icons as resources.
  Then I compiled this library (myImages.dll)</p>
  
  <p>After, I added that dll as reference in the main program and I used the ResourceManager to get the reference of my custom library. Then I pointed to use GetObject method to retrieve the name of each file.</p>
  
  <p>The following code works, but an error occurs when I try to retrieve an icon:</p>
  
  <pre><code>    ResourceManager rm = new ResourceManager("myAssembly.MyNamespace", Assembly.LoadFile("Images.dll"));
  Image myImage = ((System.Drawing.Image)(rm.GetObject("myIcon")));
  </code></pre>
  
  <p>Seems that the reference to my Images.dll doesn't work properly.
  Any hints?</p>