首页 > 代码库 > C# 大数组赋值给小数组,小数组赋值给大数组

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一样

 

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