using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace helloWorld { class QuanLyDS { private List DS = new List(); public void addDS( SinhVien SV) { this.DS.Add(SV); } public List getDSByName(string kw) { return this.DS.Where(p => p.HoTen.Contains(kw)).OrderBy(p => p.HoTen).ToList(); } public void showDS() { this.DS.ForEach(p => Console.WriteLine(p)); } } }