title: How to search for an object in List<object> having its field value
body: <p>The question is how to get an object from List having its field value </p>
  
  <p>I have got list called f_objects filled with objects. </p>
  
  <pre><code>private List&lt;F_object&gt; f_objects;
  </code></pre>
  
  <p>i've got also a string with some value :</p>
  
  <pre><code>string name = "something";
  </code></pre>
  
  <p>F_object got a method returning its field called name:</p>
  
  <pre><code>public string GetName()
  {
      return this.name;
  }
  </code></pre>
  
  <p>Is there a built in method for compare objects in list vs this field value ? Or should i make a loop and compare  like this:</p>
  
  <pre><code>foreach(F_object ob in f_objects)
  {
      if String.Equals(name, ob.GetName())
      F_object found = ob;
  } 
  </code></pre>