public void Execute(IBindingEnvironment environment) { DynamicClass dynclass = new DynamicClass(this.name); int k = 0; if (this.memberExpressions != null) foreach (IExpression expression in this.memberExpressions) { string name = this.memberNames[k++]; object value = null; if (expression != null) value = expression.Evaluate(environment); dynclass.SetMember(name, value); } Machine.Current.Environment.SetValue(this.name, dynclass); }
public void SetUp() { this.dynclass = new DynamicClass("MyClass"); }