Exemplo n.º 1
0
        internal override object AssignValue(InterpreterState state, object value)
        {
            EvaluationAddress addr = _addrs[Index];

            if (addr != null)
            {
                return(addr.AssignValue(state, value));
            }
            return(null);
        }
Exemplo n.º 2
0
        internal override object GetValue(InterpreterState state, bool outParam)
        {
            object result = null;

            for (int i = 0; i < _addrs.Count; i++)
            {
                EvaluationAddress current = _addrs[i];

                if (current != null)
                {
                    object val = current.GetValue(state, outParam);
                    if (i == Index)
                    {
                        result = val;
                    }
                }
            }
            return(result);
        }