How can i get a value from a string with an alternating name?
<p>I have the following code:</p>

<pre><code>var currentCity = db.City.Find(player.Location);

switch (TravelTo) {
    case 1:
        costs = currentCity.TravelCost.City1;
        break;
    case 2:
        costs = currentCity.TravelCost.City2;
        break;
    case 3:
        costs = currentCity.TravelCost.City3;
        break;
    case 4:
        costs = currentCity.TravelCost.City4;
        break;
    case 5:
        costs = currentCity.TravelCost.City5;
        break;
}
</code></pre>

<p>Is there a better way to get the cost value? Is there a way i can change the name of the string i want to call? So i could create something like</p>

<pre><code>costs = currentCity.TravelCost.City[TravelTo]
</code></pre>

<p>Or something like that? I feel i wrote an unnecessary switch statement but my knowledge of C# is not good enough to come up with an alternative.</p>

<p>Thanks,</p>
