Array.Copy是浅拷贝

  Demo[] demo1 = new Demo[] { new Demo { Value = 1 }, new Demo { Value = 2 }};
            Demo[] demo2 = new Demo[2];
            Array.Copy(demo1, demo2, 2);
            Console.WriteLine(object.ReferenceEquals(demo1[0],demo2[0]));

程序运行的结果是true

你可能感兴趣的:(Array.Copy是浅拷贝)