static void Main(string[] agrs) { var now_s = new OrderService(); now_s.Add("1", "myc"); now_s.Add("2", "myc"); now_s.Add("1", "cxy"); now_s.Add("2", "cxy"); try { now_s.findbycustomer("myc")[0].print(); now_s.Delbyid(3); now_s.Delbyid(10); } catch (Find_abnormal a) { Console.WriteLine(a.a); } try { now_s.findbyname("1")[0].print(); now_s.findbyid(1).print(); } catch (Find_abnormal a) { Console.WriteLine(a.a); } }