日期:2014-05-18 浏览次数:20578 次
SortedList mySortedList = new SortedList();
//while if for break switch
mySortedList["while"] = "while";
mySortedList["if"] = "if";
mySortedList["for"] = "for";
mySortedList["break"] = "break";
mySortedList["switch"] = "switch";
if (!IsPostBack)
{
string s=string.Empty;
foreach (DictionaryEntry Item in mySortedList)
{
s += Item.Value.ToString()+" ";
}
Response.Write(s);
}