Asp.net中Array的用法

定义一个Array数组的方法:

Array arr1 = Array.CreateInstance(typeof(string), DS.Tables[0].Rows.Count);    //数据类型,数组大小
Array arr2 = Array.CreateInstance(typeof(double), DS.Tables[0].Rows.Count);

arr1.SetValue(Value,index);  //数据的值,Array索引

arr2.SetValue(Value,index); 

最后可以获得arr1、arr2里的值

原文地址:https://www.cnblogs.com/ZHF/p/1358372.html