Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. execute c# commands dynamically???????

execute c# commands dynamically???????

Scheduled Pinned Locked Moved C#
csharpdesignhelpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mr mohsen
    wrote on last edited by
    #1

    hi friends i want to design an application that user can input his/her favorite c# commands and after press execute button his/her entered command(s) execute. i dont want to design a c# compiler. i have a form that on this form has one textbox and one button. user input his/her c# command on textbox and press button. now i want to execute and compile his/her c# command dynamically. i hope you understand what i need. thank you

    nobody help you... you have to help you yourself and this is success way.

    L N C 3 Replies Last reply
    0
    • M mr mohsen

      hi friends i want to design an application that user can input his/her favorite c# commands and after press execute button his/her entered command(s) execute. i dont want to design a c# compiler. i have a form that on this form has one textbox and one button. user input his/her c# command on textbox and press button. now i want to execute and compile his/her c# command dynamically. i hope you understand what i need. thank you

      nobody help you... you have to help you yourself and this is success way.

      L Offline
      L Offline
      lisan_al_ghaib
      wrote on last edited by
      #2

      A Interpreter In have find this interesting article on CodeProjet http://www.codeproject.com/KB/cs/csi.aspx[^]

      1 Reply Last reply
      0
      • M mr mohsen

        hi friends i want to design an application that user can input his/her favorite c# commands and after press execute button his/her entered command(s) execute. i dont want to design a c# compiler. i have a form that on this form has one textbox and one button. user input his/her c# command on textbox and press button. now i want to execute and compile his/her c# command dynamically. i hope you understand what i need. thank you

        nobody help you... you have to help you yourself and this is success way.

        N Offline
        N Offline
        Nicholas Butler
        wrote on last edited by
        #3

        Have a look at Microsoft.CSharp.CSharpCodeProvider

        ---------------------------------- Be excellent to each other :)

        1 Reply Last reply
        0
        • M mr mohsen

          hi friends i want to design an application that user can input his/her favorite c# commands and after press execute button his/her entered command(s) execute. i dont want to design a c# compiler. i have a form that on this form has one textbox and one button. user input his/her c# command on textbox and press button. now i want to execute and compile his/her c# command dynamically. i hope you understand what i need. thank you

          nobody help you... you have to help you yourself and this is success way.

          C Offline
          C Offline
          chaiguy1337
          wrote on last edited by
          #4

          There are basically two options that I think both previous responses have covered, and those are either: a) Scripting, using a C#-like scripting implementation (I have heard of at least two, probably more) b) Dynamic compilation, which allows you to actually use the built-in (and supported) C# compiler to compile true C# into miniature in-memory assemblies And if you want to consider it a third, there is actually one of those scripting languages that compiles, combining the two ideas. This is something I've been wanting to look into so I've been keeping my eye out for stuff, but haven't actually tried anything out yet. Let me know how your search goes! Logan

          “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups