怎么建立有标签的数组就是 可以添加数组为 ("a","aaaaa")
("a","bbbbb")
("a","ccccc")
("a","ddddd")
("a","eeeee")
("b","bbbbb")
("b","ccccc")
("b","ddddd")
("b","eeeee")

解决方案 »

  1.   

    使用ArrayList数组,数组中放置标签对象的各个属性。
      

  2.   

    // Create a new dictionary of strings, with string keys.
            //
            Dictionary<string, string> openWith = 
                new Dictionary<string, string>();        // Add some elements to the dictionary. There are no 
            // duplicate keys, but some of the values are duplicates.
            openWith.Add("txt", "notepad.exe");
            openWith.Add("bmp", "paint.exe");
            openWith.Add("dib", "paint.exe");
            openWith.Add("rtf", "wordpad.exe");