Esempio n. 1
0
 private Employee[] getlist()
 {
     Employee[] data = new Employee[] {
     new Employee { ID = 2, Name = "JIRO" }
         , new Employee { ID = 2, Name = "JIRO" }
     };
     return data;
 }
Esempio n. 2
0
 private List<Employee> createListData()
 {
     List<Employee> list = new List<Employee>();
     Employee emp = new Employee();
     emp.ID = 3;
     emp.Name = "SABURO";
     list.Add(emp);
     list.Add(new Employee { ID = 2, Name = "JIRO" });
     list.Add(new Employee { ID = 1, Name = "TARO" });
     return list;
 }