Getting the value of an item from a SelectListItem List?
<p>I have the following class:</p>

<pre><code>public static IEnumerable&lt;SelectListItem&gt; GetDatastore()
{
    return new[]
        {
            new SelectListItem { Value = "DEV", Text = "Development"  },
            new SelectListItem { Value = "DC1", Text = "Production" },
        };
}
</code></pre>

<p>What I need is to execute a function to return the Datastore name. Something like</p>

<pre><code>var abc = getDatastoreName("DEV"). 
</code></pre>

<p>Do I need to do this with LINQ or is there some easy way? How could I code this function?</p>
