RT.

解决方案 »

  1.   

    ArrayList al = new ArrayList();
    string[,] arr = new string[,]{{"a","b"},{"c","d"}};
    al.Add(arr);
      

  2.   

    可能我的意思没有表达清楚,我是想用ArrayList实现一个动态二维数组的功能。
      

  3.   

    楼主的想法过于奇怪!下面这样可以吗
    struct Data
    {
    public int ID;
    public string Name;
    }ArrayList arr = new ArrayList();for(int i = 0; i< 100; i++)
    {
       Data d = new Data();
       d.ID = i;
       arr.Add(d);
    }