Getting data out form a script to the C# that ran it
I'd like to use data generated by a scirpt in the C# code that compiled and ran it, like this:
LINQPad.ObjectModel.QueryCompilation compiledScript = LINQPadUtil.Compile("SomeScript.linq"); LINQPad.ObjectModel.QueryExecuter exec = CompiledScript.Run(LINQPad.QueryResultFormat.Text); exec.Wait(); // Here I want to use data generated in the script - what's the best way to do this?
Comments
If you want to use the script's return value, i.e.: then use exec.ReturnValue.
tx
What about runtime info from the script, such as
int Progress;
?