Yaron Naveh
Yaron Naveh

Reputation: 24426

How to generate c# code?

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?

Upvotes: 2

Views: 382

Answers (2)

Keith Blows
Keith Blows

Reputation: 1690

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.

Upvotes: 0

Related Questions