There's a fair bit written about using CodeDom, but samples showing how to implement your own provider have been quite thin on the ground. Fortunately Eden Li, a CLR intern this summer, produced a couple of useful CodeDom provider samples now live on the MSDN BCL site: