Has anyone any experience with runtime evaluation/ execution of strings? What i'm talking about is say you have a string >> "EngVar.sunlight.Intvalue=0" and then being able to process this at runtime, and have C# execute it. I don't think C# has an eval() function at the moment, i think python does though.

This way you could create your own scripting engine allowing the user to change almost anything at runtime.

I'll probably have to wait until C# 4.0 or even 5.0 appears. I think they are exposing the CLR compiler as a set of classes, so you can control what happens at runtime.

Last edited by DJBMASTER; 07/28/09 21:05.