Пример #1
0
        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);
        }
Пример #2
0
 public void SetUp()
 {
     this.dynclass = new DynamicClass("MyClass");
 }