title: Can i use Linq to iterate/filter my web.config AppSettings?
body: <p>i'm trying to figure out how I can use Linq to filter out some of my appsettings from my web.config file.</p>
  
  <p>i'm trying to do something like the following (which has wrong syntax) :-</p>
  
  <pre><code>var query = from q in System.Web.Configuration.WebConfigurationManager.AppSettings.Keys
              where q.StartsWith("Foo")
              select q);
  </code></pre>
  
  <p>what have I done wrong?</p>
  
  <p>edit: added screenie (here's <a href="http://img21.imageshack.us/img21/5516/errorji.png" rel="noreferrer">a link to it</a>)</p>
  
  <p><a href="http://img21.imageshack.us/img21/5516/errorji.png" rel="noreferrer">alt text http://img21.imageshack.us/img21/5516/errorji.png</a></p>