Click to See Complete Forum and Search --> : Generate code at runtime.


MMH
March 29th, 2009, 12:52 PM
Hi all,

I have a specific requirement where in i want to generate C# code on runtime. Please let me know how to achieve this.

Can this be done with help of CodeCompileUnit ?

Thanks,
MMH.

Shuja Ali
March 29th, 2009, 01:39 PM
Yes it can be done and you should take a look at System.CodeDom.Compiler. Also take a look at this article on codeproject
http://www.codeproject.com/KB/codegen/Run-Time_Code_Generation1.aspx

MMH
March 30th, 2009, 05:57 AM
Thanks for this info...

Regards,
MMH