Suppose I have two classes:
public class Student { public int Id {get; set;} public string Name {get; set;} public IList Courses{ g
There's a library for doing just that - http://emitmapper.codeplex.com/
It's much faster than AutoMapper, it uses System.Reflection.Emit, so the code runs almost as fast as if it was hand-written.