title: C# Better way of managing UI graphics
body: <p>I'm building a UI framework for a mobile application and I have a question about managing UI graphics.</p>
  
  <p>Right now I'm storing all the graphics as embedded resources.  But the GUI part of the project is seperated into 3 different Projects and NameSpaces, each containing graphics as embedded resources.  One of the Projects is a base type and doesn't know about the other two, and the other two Projects need resources from their NameSpace and Assembly and from the third (base) Namespace and Assembly</p>
  
  <p>What I have been doing is when a resource is requested via the file name, I go through each of the three project's Assembly object's list of GetManifestResourceNames, sort them, then search for the first string that contains the file name.  I'm noticing that for each graphic it is taking 11-14 ms just to get this string!  When all is said and done, I'm looking at 60-100 ms just in resource name lookup</p>
  
  <p>I know there must be a better way to dynamically find a resource across projects and namespaces using only the file name.  Any help with this would be excellent!</p>
  
  <p>Also, having the resources be embedded isn't a constraint.  If there is a better solution that doesn't involve ER, that'd be great!</p>