How do I make a collection fast searchable?
<p><strong>EDIT</strong>: I rephrased the question, and it was solved on this post: <a href="http://stackoverflow.com/questions/9252878/c-how-do-i-search-within-a-collection-of-type-configurationsection">C#: How do I search within a collection of type ConfigurationSection?</a></p>

<p><strong>Original Question:</strong></p>

<p>I am storing a list of config options in my web config. I may have 50 or 100 items in here eventually.</p>

<p>I am using the method described here:</p>

<p><a href="http://net.tutsplus.com/tutorials/asp-net/how-to-add-custom-configuration-settings-for-your-asp-net-application/" rel="nofollow">http://net.tutsplus.com/tutorials/asp-net/how-to-add-custom-configuration-settings-for-your-asp-net-application/</a></p>

<p>The good news:</p>

<p>It works, and I have a _Config collection that has all the </p>

<p>The problem: How do I query _Config for a specific feed? (I will have 50-100, maybe more over time.... someday this will move to a db, but not now, as it is hosted on azure, and I need to avoid azure persistence for now.)</p>

<p>(And since this will execute a lot, perhaps it should be  hashtable or dictionary? but I don't know how to create em...)</p>

<p>I have struggled, and have <strong>been unable to cast _Config into a list or something that I can query.</strong> </p>

<p><strong>The question is: How do I get _Config (from the link above) into something that I can query for a specific feed?</strong></p>

<p>The ultimate goal is to have a func that is called to work with a specific feed, and so it needs the config info just from that feed record. In pseudocode, the goal is something like:</p>

<pre><code>getFeed(feedname)
    if (_Config.name == feedname) // e.g. feedname is one of the "name" elements in the web.config
        // do the stuff
        GetData(_Config.feedname.url)
    else
        // requested feed is not in our config
        // tell use can't do it
</code></pre>

<p>Or, (also pseudo code)</p>

<pre><code>getFeed(feedname)
    try
        thisPassFeed = _Config.feedname;
        string url = thisPassFeed.url;
        // do the stuff
        GetData(url);
    catch
        // requested feed is not in our config
        // tell use can't do it
        return("can't find that feedname in web.config")
</code></pre>
