Changes made on “copy” list are reflecting original list - c#

后端 未结 3 398
终归单人心
终归单人心 2021-01-21 01:08

I have two lists, the original one and a copied one. I made a copy of the original list, because of one reason:

I need to process/work data from the original list, but I

3条回答
  •  暖寄归人
    2021-01-21 01:52

    You made a copy of the list, but the copy still contains references to the same objects; the objects themselves are not copied.

提交回复
热议问题