Code sample

Jul 20, 2010 at 6:10 PM

This is my code sample:

public class Person    {        

public string Name { get; set; }
        public string Surname { get; set; }
        public DateTime BirthDate { get; set; }
        public int AccountNumber { get; set; }    

}

Hydrator<Person> hydrator = new Hydrator<Person>();

hydrator.WithFirstName<string>(per => per.Name);

hydrator.WithLastName<string>(per => per.Surname);

var p = hydrator.GetList(10);