title: IList.Add() overwriting existing data
body: <p>I'm facing a problem adding data to an <code>IList</code> but the problem is each time I added data the existing data is overwritten with the current one  my code is given below:</p>
  
  <pre><code>Test test = new Test();
  IList&lt;Test&gt; myList = new List&lt;Test&gt;();
  
  foreach (DataRow dataRow in dataTable.Rows)
  {
       test.PatientID = Convert.ToInt64(dataRow.ItemArray[0]);
       test.LastName = dataRow.ItemArray[1].ToString();
       test.FirstName = dataRow.ItemArray[2].ToString();
       myList.Add(test);
  }
  </code></pre>
  
  <p>What's the reason behind this?</p>