How can i differentiate items in list in c#
<p>I have one listitem and i am adding this listitem to a list multiple times with one property difference...
i.e listitem have DateOfService property..k...
then i am adding first item to list... it's fine
and i am changing DateOfService property and adding again...
but the previous added item DateOfService also changeing....
how can i overcome this problem...</p>

<p><strong>sampleCode</strong></p>

<pre><code> if (bills[index].FrequencyId == Convert.ToInt32(Frequency.Daily))
   {
    for (int day = 0; day &lt; remainedDays; day++)
     {

       bills[index].DateOfService = DateTime.Now.Date.AddDays(day).Date;
        remainedBills.Add(bills[index]);
     }
   }
</code></pre>

<p>Hi i did this also but no use...</p>

<pre><code>if (bills[index].FrequencyId == Convert.ToInt32(Frequency.Daily))
                    {
                        AdmissionEntryVo objAdmissionEntryVo = null;
                        for (int day = 0; day &lt; remainedDays; day++)
                        {
                            objAdmissionEntryVo = new AdmissionEntryVo();
                            objAdmissionEntryVo = bills[index];
                            objAdmissionEntryVo.DateOfService = DateTime.Now.Date.AddDays(day).Date;
                            remainedBills.Add(objAdmissionEntryVo);
                        }
                    }
</code></pre>
