Need to have some method to access data in my class
<p>I have the following class:</p>

<pre><code>public static class ReferenceData
{

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

<p>When I want to find the name of the datastore given the value I have been using:</p>

<pre><code>DatastoreText = ReferenceData.GetDatastore().Single(s =&gt; s.Value == datastoreValue).Text
</code></pre>

<p>This works good but is there a better way? Can I code the above into my reference class and so reuse it in different places?</p>

<p>Thanks</p>
