09-21-2013, 09:14 AM
Try this
for(int i = 0; i
{
itemB = new Items();
itemB.ID = br.readInt32();
itemB.power = br.readInt32();
ItemA.Add(itemB);
}
The reason why it was happening is because of the reference.
itemB stays the same when u dont initialize it again.
And even if added to the list, itemB is still itemB.
So basically u just added 5x the same object to the list that all point to the same data.

