Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 164061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:40:38+00:00 2026-05-11T11:40:38+00:00

Is there a possibility that I can put some of my code in non-compiled

  • 0

Is there a possibility that I can put some of my code in non-compiled form with my application and then make changes to it on the fly and the application can then just use the new version onwards?

If it is possible (which i secretly know it is using CodeDOM), are there any issue to watch out for using this approach for pluggability (aside from the code protection issue)?

Is there a example available which i can re-use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:40:39+00:00Added an answer on May 11, 2026 at 11:40 am

    You’ve already said you know how to do with with CodeDOM – why not just use that?

    If you’re happy with it being C# code, then CSharpCodeProvider does an admirable job. If you’re feeling more adventurous, you might want to consider Boo – read Ayende Rahien’s book on building DSLs in Boo for more information and advice.

    For an example of using CSharpCodeProvider, you could download Snippy from my C# in Depth web site. Basically Snippy lets you type in a code snippet and run it, without bothering to declare a class etc. It doesn’t do much more than build and run code, so it’s a fairly handy example 🙂

    For plenty more examples, search for CSharpCodeProvider on Stack Overflow. Here’s a short but complete one – code for ‘hello world’ is compiled and then executed.

    using System; using System.CodeDom.Compiler; using Microsoft.CSharp;  class Test {     public static void Main(string[] args)     {         string code = @' using System;  class CodeToBeCompiled {     static void Main()     {         Console.WriteLine(''Hello world'');     } }';          var codeProvider = new CSharpCodeProvider();         var parameters = new CompilerParameters         {             GenerateExecutable = true,             OutputAssembly = 'Generated.exe'         };         var results = codeProvider.CompileAssemblyFromSource             (parameters, new[] { code });         results.CompiledAssembly.EntryPoint.Invoke(null, null);     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.