avatar
QuanLyDS của helloworld

mysbaka 2.1K 26th Nov, 2019

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace helloWorld
{
    class QuanLyDS
    {
        private List<SinhVien> DS = new List<SinhVien>();

        public void addDS( SinhVien SV)
        {
            this.DS.Add(SV);
        }

        public List<SinhVien> 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));
        }


    }

}
Description

No description

To share this paste please copy this url and send to your friends
RAW Paste Data