可以運用下面方式(Pseudocode):
using System.Collections;
using System.Collections.Generic;
.....
Dictionary MyArryList = new Dictionary();
.....
//建立需要的ArryList
MyArryList.Add("同事資料", new ArrayList());
MyArryList.Add("朋友資料", new ArrayList());
MyArryList.Add("親戚資料", new ArrayList());
MyArryList.Add("同學資料", new ArrayList());
//使用
MyArryList["同事資料"][0] = ???;
MyArryList["同事資料"][1] = ???;
MyArryList["同事資料"][2] = ???;
MyArryList["同事資料"][3] = ???;
MyArryList["朋友資料"][0] = ???;
MyArryList["朋友資料"][1] = ???;
MyArryList["朋友資料"][2] = ???;
MyArryList["朋友資料"][3] = ???;
......
