How to convert string to code in C #
2 answers
You can use classes in the System.CodeDom namespace to compile C # into in-memory assemblies and run them on the fly. Here's a mini tutorial .
Alternatively, you can use Reflection.Emit to generate code on the fly.
+2
source to share