[Mono-dev] Need PutVar method on Mono.CSharp.Evaluator
Tom Spink
tspink at gmail.com
Mon Aug 15 11:59:46 EDT 2011
Hi slide,
On 15 August 2011 16:49, Slide <slide.o.mix at gmail.com> wrote:
>
> I think Charles is wondering how he gets his stuff inside the evaluator in
> the first place. For instance, if he has OUTSIDE the evaluator, some
> instance of an object, how does he get that object into the evaluator so the
> evaluator can interact with it. From my experience, there is access to the
> scope in which the evaluator is created in, I added objects to a "context"
> object and then grab them out inside the repl code as needed, but is there a
> better way to do it?
>
> Thanks,
>
> slide
>
Well, his initial sample could be solved the way I suggested. However, a
quick Google turned up the following thread, which may be of some use:
http://stackoverflow.com/questions/3788096/injecting-a-variable-into-the-mono-csharp-evaluator-runtime-compiling-a-linq-que
--
Tom Spink
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110815/6254c51e/attachment.html
More information about the Mono-devel-list
mailing list