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();
The type or namespace name 'List' could not be found (using ディレクティブまたはアセンブリ参照がありませんか?)