将集合复制到数组中,首先将其设置为− List list1 = new List (); list1.Add("Car"); list1.Add("Bus"); list1.Add("Motorbike"); list1.Add("Train"); 登录后复制 现在声明一个字符串数组,并使用CopyTo()方法复制 − string[] arr = new string[20]; list1.Co
Label excelTitle = new Label(i, 0, title, titleFormat); wsheet.addCell(excelTitle); } int c = 1; //用于循环时Excel的行号 ClassroomService cs = new ClassroomService(); List list = cs.findAllClassroom(); //这个是从