예제 #1
0
        public override void RemoveAt(int index)
        {
            if (!CheckRange(index))
            {
                throw new ArgumentOutOfRangeException("index");
            }
            QaParameter param = parameters[index];

            param.ResetParent();
            parameters.RemoveAt(index);
        }
예제 #2
0
        protected override void SetParameter(int index, DbParameter value)
        {
            if (!CheckRange(index))
            {
                throw new IndexOutOfRangeException("index");
            }

            QaParameter newparam = (QaParameter)value;

            CheckSetParent(newparam);

            QaParameter oldparam = parameters[index];

            oldparam.ResetParent();

            parameters[index] = newparam;
        }