title: Find element in List<> that contains a value
body: <p>I have a <code>List&lt;MyClass&gt; MyList</code> where</p>
  
  <pre><code>public class MyClass
  {
      public string name { get; set; }
      public string value { get; set; }
  }
  </code></pre>
  
  <p>Given a name, I'd like to get the corresponding value. I have it currently implemented as:</p>
  
  <pre><code>MyList[MyList.FindIndex(item =&gt; String.Compare(item.name, "foo", 0) == 0)].value
  </code></pre>
  
  <p>Is there a cleaner way to do this?</p>