title: C# Remove items from class array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/457453/remove-element-of-a-regular-array">Remove element of a regular array</a>  </p>
  </blockquote>
  
  
  
  <p>I have a method defined which returns class array.
  ex: Sampleclass[]
  The Sampleclass has properties Name, Address, City, Zip. On the client side I wanted to loop through the array and remove unwanted items. I am able to loop thru, but not sure how to remove the item.</p>
  
  <pre><code>for (int i = 0; i &lt; Sampleclass.Length; i++)
  {
  if (Sampleclass[i].Address.Contains(""))
  { 
  **// How to remove ??**
  }
  }
  </code></pre>