If understood your question, I think CodeDom implements what you want already. There is a class called the Microsoft.CSharp.CSharpCodeProvide that can generate both compiled assemblies and source code. There's a sample on MSDN that explains how to do it:
[link:msdn2.microsoft.com]

The code dom object model is not that great, in my opinion, but it will definitely be quicker than writing your own.

There is an F# code dom provider if you would prefer to generate F# instead:
[link:cs.hubfs.net]

By on 11/27/2006 9:51 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper