[Ironpython-users] Retrieving Ironpython variables within .NET
luis.vallejo at gmail.com
Wed Oct 12 18:04:48 CEST 2011
Im new to Ironpython and I was reading the book Ironpython in Action now in
Chapter 15, there is something i want to do but i just cant make it work. I
have the following script
self.value = value
self.quality = quality
number = 5;
variable = "Goodbye world!"
x = Item(5.0,"Good")
And I want to retrieve the variable "x" from C# change its value and inject
it back to Ironpython the problem I face is that well.. i dont know how. I
have tried with the scope.GetItems() but it returns 0. the only time it
returns the variables is when I Execute the Code, and if its possible I
would like to have it before...
//Item is of size 0
var items = _scope.GetItems();
//After execute items is size 5
items = _scope.GetItems();
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users