62,269
社区成员
发帖
与我相关
我的任务
分享
Customer [] customer = (Customer[])myArrayList.ToArray();
Customer [] customer = (Customer[])myArrayList.ToArray(typeof(Customer));
Example:
ArrayList AL8000Can = new ArrayList();
AL8000Can.Add(this.tbValuer);//第1個TextBox
AL8000Can.Add(this.tbHPSupervisor); //第2個TextBox
AL8000Can.Add(this.tbYTGSupervisor); //第3個TextBox
AL8000Can.Add(this.tbTPYSupervisor); //第4個TextBox
TextBox[] tb8000Can = (TextBox[])AL8000Can.ToArray(typeof(TextBox));