Open mercurial-moon opened 2 weeks ago
Yes, sorry, this is not supported. Variables are "read only". What I think you can do is create a object and assign one of its property. Something like:
var ipt = new Interpreter().EnableAssignment(AssignmentOperators.All);
ipt.SetVariable("registry", someObject);
ipt.SetVariable("b", 10);
ipt.SetVariable("c", 20);
var result = ipt.Eval("registry.a = b + c");
Code
also tried changing first line to
but result is same. if i remove the assignment it works