title: Array.BinarySearch where a certain condition is met
body: <p>I have an array of a certain type. Now I want to find an entry where a certain condition is met. </p>
  
  <p>What is the preferred way to do this with the restriction that I don't want to create a temporary object to find, but instead I only want to give a search condition. </p>
  
  <pre><code>MyClass[] myArray;
  // fill and sort array..
  MyClass item = Array.BinarySearch(myArray, x=&gt;x.Name=="Joe"); // is this possible?
  </code></pre>
  
  <p>Maybe is it possible to use LINQ to solve it?</p>
  
  <p>EDIT:
  I know that it works on normal collections, but I need it to work for BinarySearch.</p>