title: How to return a unique element from a C# array
body: <p><strong>Problem</strong></p>
  <p>I am trying to return a unique element from a C# array with the in-built method <code>array.Distinct.First()</code>. The method works for some arrays but returns an incorrect element for this array <code>{11,11,11,14,11,11}</code>. It gives me an output of <code>11</code> which is incorrect because the unique element in that array is supposed to <code>14</code>.
  I know there is a way to do that with a <code>predicate</code> function but that is just the reason why am asking, I do not know</p>
  <p><strong>Code</strong></p>
  <pre><code>public static int getUnique(IEnumerable&lt;int&gt; numbers){
  return numbers.Distinct().First();
  //you can bet i tried .FirstOrDefault()
  //without any success
  }
  </code></pre>
  <p>Any help to make that code return the correct value is highly appreciated.</p>