C# 大数组赋值给小数组,小数组赋值给大数组

string[] arraymax = new string[5];
            string[] arraymin = new string[3];
            string[] arraystr = new string[] {"11","22","33","44" };
            arraymax = arraystr;//变成和arraystr一样
            arraymin = arraystr;//变成和arraystr一样

 

posted @ 2017-07-04 11:20  longdb  阅读(4295)  评论(0编辑  收藏  举报