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
No comments posted yet.
An arguably necessary disclaimer: The views expressed are my own and do not necessarily reflect the views of my employer.