/// <summary>
/// 将Ilist<T>型转换为数组
/// </summary>
/// <returns></returns>
protected string[] toBeSored()
{
IList<string> lst = new List<string>();
lst.Add("a");
lst.Add("b");
lst.Add("c");
string[] toBesorted = new string[lst.Count];
for (int i = 0; i < lst.Count; i++)
{
toBesorted[i] = lst[i];
}
return toBesorted;
}
呵呵,很简单的类型转换