装箱 就是生成object 在需要进行元素操作的时候用强制类型转换,操作之后隐式或者显式转换成object类型
非装箱 就是直接声明强类型的对象

解决方案 »

  1.   

    int[] sourceArray = new int[5000000];            
                object targetArray = new object[5000000];            DateTime now = DateTime.Now;
                for (int i = 0; i < 5; i++)
                {
                    targetArray = sourceArray;
                    sourceArray = (int[])targetArray;
                }            TimeSpan needTime = DateTime.Now - now;
                MessageBox.Show(needTime.ToString());
      

  2.   

    怎么看起来是引用赋值,都是在操作sourceArray里面的东西,晕...