public static List GetVal() { List emplist = new List(); emplist.Add(new Employee { FirstName = "Jim", LastName = "Morrison"}); return emplist; } public class Employee { public string FirstName { get; set; } public string LastName { get; set; } }
Print | posted @ Saturday, December 27, 2008 7:30 PM