摘要:List
listemp.Find(delegate(emp p) { return p.Name == search; })
listemp.FindAll(delegate(emp p) { return p.Name == search; }).Count.ToString()
listemp.Exists(delegate(emp p) { return p.Name == search; })
listemp.Sort(delegate(emp p1, emp p2) { return Comparer<string>.Default.Compare(p1.Name, p2.Name); });
foreach (emp p in listemp) litMsg.Text += p.ToString()
資料來源 : http://msdn.microsoft.com/zh-tw/library/s6hkc2c4.aspx