SetIndexedPropertyValue() private method

private SetIndexedPropertyValue ( Object arguments, Object value ) : void
arguments Object
value Object
return void
Esempio n. 1
0
        internal override void SetValue(Object value)
        {
            LateBinding prop = this.func.EvaluateAsLateBinding();

            try{
                prop.SetIndexedPropertyValue(this.argValues != null ? this.argValues : this.args.EvaluateAsArray(), value);
            }catch (JScriptException e) {
                if (e.context == null)
                {
                    e.context = this.func.context;
                }
                throw e;
            }catch (Exception e) {
                throw new JScriptException(e, this.func.context);
            }
        }
Esempio n. 2
0
        internal override void SetValue(object value)
        {
            LateBinding binding = this.func.EvaluateAsLateBinding();

            try
            {
                binding.SetIndexedPropertyValue((this.argValues != null) ? this.argValues : this.args.EvaluateAsArray(), value);
            }
            catch (JScriptException exception)
            {
                if (exception.context == null)
                {
                    exception.context = this.func.context;
                }
                throw exception;
            }
            catch (Exception exception2)
            {
                throw new JScriptException(exception2, this.func.context);
            }
        }