How to implement "Immediate window" from Visual Studio?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im creating a library and I want the users to be able to interact with it by writing 1) "scripts" and 2) evaluating expressions. The interaction is to be done in C#, so its going to be like an interpreter. The 1) is fairly easy, Ill just add "class X {" and "}" and call csc.exe to build a .dll which then I can plug in and execute. But I have trouble with 2). What I want is something like "Immediate window" in Debug in Visual Studio - one can evaluate expressions and - whats important - create and "remember" variables. So the question is whether there is an easy way to implement it? Does .NET have some classes that would serve the purpose?

View the full article
 
Back
Top