This is not really for practical use, but is there any way to execute a string as a program code in C#?
For example :
instead of writing
Console.WriteLine("blah blah blah");
I would like to write something like
string s = "Console.WriteLine(\"blah blah blah\")"
execute(s);
This can be done using Microsoft.CSharp.CSharpCodeProvider.
Check this.