コード例 #1
0
        static void Main(string[] args)
        {
            BussinessLayer b = new BussinessLayer();

            Employee e = b.search(2);

            Console.WriteLine("{0} {1}  {2}", e.Id, e.Name, e.Salary);
            string          str = "Ajay";
            List <Employee> l   = b.search(str);

            foreach (Employee ee in l)
            {
                Console.WriteLine("Id = {0}  Name = {1} salary = {2}", ee.Id, ee.Name, ee.Salary);
            }
        }
コード例 #2
0
        static void Main(string[] args)
        {
            BussinessLayer b = new BussinessLayer();

            //Employee e = b.search(2);
            //Console.WriteLine("{0} {1}  {2}",e.Id,e.Name,e.Salary);
            //string str = "Ajay";
            //List<Employee> l = b.search(str);
            //foreach (Employee ee in l)
            //{
            //    Console.WriteLine("Id = {0}  Name = {1} salary = {2}", ee.Id, ee.Name, ee.Salary);
            //}

            //Employee ad = new Employee { Id = 09, Name = "Vaibhav", Salary = 900000 };
            //b.add(ad);
            b.badal(01, "Rajesh");
        }