I'm writing a desktop application. It would need to generate c# code on client machines.
I thought of using CodeDOM (complex) or simple string manipulations (fragile). What else? Which way is recommended?
I'm writing a desktop application. It would need to generate c# code on client machines.
I thought of using CodeDOM (complex) or simple string manipulations (fragile). What else? Which way is recommended?
If you mean run dynamic code, then: CS-Script is the most mature solution. With CS-Script you could even roll your own template based, custom code generator, like the scripting used by MyGeneration.