Hi All,
When i excute this code at return people i get PeopleViewer.Person instead of there names.Can anyone tell me what i am doing wrong.
Thanks for the help.
namespace PeopleViewer
{
class PeopleRepository
{
public Person[] GetPeople()
{
var people = new Person[]
{
new Person() {FirstName="JOhn",LastName="Sheridan",StartDate = DateTime.Parse("2/7/12"),Rating=2},
new Person() {FirstName="Matt",LastName="Hugher",StartDate = DateTime.Parse("2/3/77"),Rating=2},
};
return people;
}
}
}
namespace PeopleViewer
{
public class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime StartDate { get; set; }
public int Rating {get;set;}
}
}