title: How to get distinct value from array of object in C#?
body: <p>I have an <code>array</code> of an <code>object</code> called storing, some of the object's attribute (<code>skuID</code>) is the same with some of the other storing with different (<code>storingID</code>), how do i make my <code>array</code> <code>distinct</code> depending on their (<code>skuID</code>)?</p>
  
  <pre><code>Storing(string storingID, skuID, storageID, price, expiry)
  </code></pre>
  
  <p>I have tried this but it doesn't work:</p>
  
  <pre><code>List&lt;storing&gt; storingAll = (List&lt;storing&gt;)Session["storingAll"];
  List&lt;storing&gt; displayedStoring = storingAll.Distinct().ToArray();
  </code></pre>