using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using MySql.Data.MySqlClient;
public string[] UpdateCGPA()
{
List<string> list = new List<string>();
conn.Open();
string STDid = "SELECT Student_ID from Students";
MySqlCommand cmd = new MySqlCommand(STDid, conn);
MySqlDataReader myReader;
myReader = cmd.ExecuteReader();
while (myReader.Read())
{
list.Add(Convert.ToString(myReader.GetString(0)));
}
string[] array = list.ToArray();
return array;
}
VS2008 在这一行给出错误: List list = new List();
错误说找不到类型或命名空间名称“列表”(您是否缺少 using 指令或程序集引用?)