CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    Question Generate code at runtime.

    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.

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Generate code at runtime.

    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/codege...neration1.aspx

  3. #3
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    Re: Generate code at runtime.

    Thanks for this info...

    Regards,
    MMH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured