我想复制一个对象列表,但我不断获得对象之间的引用.
List<MyClass> copy = original;
当我更改副本列表中的值时,原始列表也会被修改.有办法解决它吗?
c# asp.net code-behind
asp.net ×1
c# ×1
code-behind ×1