score:2

Accepted answer

Move Music music = new Music(); inside your foreach loop.

At the moment you're creating a single Music instance and adding it to the list multiple times. Every time you update it, every item in the list is affected because they're all the same item.


Related Articles