title: LINQ to resx file?
body: <p>I'm trying to build a way to get the key for a given piece of text in a given <code>.resx</code> file at runtime.</p>
  
  <p>Currently, I can open and read the file (Using <code>ResXResourceReader</code>) but I have to use a <code>foreach</code> to go over the entire file.</p>
  
  <p>This could be a performance issue, as some of our <code>.resx</code> files are fairly large (in the order of 2000 strings) and we may be doing this frequently.</p>
  
  <p>I'd like to use LINQ to Objects to query this, as I assume the <code>where</code> method is relatively optimized, however I've been unable to do so.  The <code>ResXResourceReader</code> class has two methods <code>AsQueryable()</code> and <code>GetEnumerator()</code>, but neither allow LINQ against their result (so <code>from n in reader.AsQueryable() where</code> fails).</p>
  
  <p>How can I LINQ against something provided by the <code>ResXResourceReader</code>, or is it even worth the time?</p>