This question already has an answer here:
Is it possible to write basic strings and run them as c# codes as if using immediate window when debug mode. Well, I'm looking for without using CSharpCodeProvider. It should just trust on my code that I ll use my existing objects.
For example
static void Main(string[] args)
{
string code = "Console.WriteLine(\"Hello world!\");";
ExecuteCode(code);
}
Kind regards.
Aucun commentaire:
Enregistrer un commentaire