http://www.jonathancrossland.com/post/Code-Generation-and-Source-Code-Baking.aspx