List<Person> allPersons= ReadallPersons()
Person aPerson=allPersons[0];
aPerson.Name="test1";
allPersons.Add(aPerson)
allPersons has one single person object, I am assigning that person object into 'aPerson' object.Just Renaming the person name as 'test1' and again adding it to the list.
Now if we check the list, both person's object's Name has assigned as 'test1'.
What is the problem in this?
How can we sort out this?