private PARAMETEROBJECTNAME(PARAMETEROBJECTNAME source) : this() { // V1.2.3300, Clone
            ADP.CheckArgumentNull(source, "source");

            source.CloneHelper(this);

            ICloneable cloneable = (_value as ICloneable);
            if (null != cloneable) { // MDAC 49322
                _value = cloneable.Clone();
            }
        }
Exemplo n.º 2
0
        private void RemoveIndex(int index)
        {
            List <PARAMETEROBJECTNAME> items = InnerList;

            Debug.Assert((null != items) && (0 <= index) && (index < Count), "RemoveIndex, invalid");
            PARAMETEROBJECTNAME item = items[index];

            items.RemoveAt(index);
            item.ResetParent();
        }
Exemplo n.º 3
0
        private void Replace(int index, object newValue)
        {
            List <PARAMETEROBJECTNAME> items = InnerList;

            Debug.Assert((null != items) && (0 <= index) && (index < Count), "Replace Index invalid");
            ValidateType(newValue);
            Validate(index, newValue);
            PARAMETEROBJECTNAME item = items[index];

            items[index] = (PARAMETEROBJECTNAME)newValue;
            item.ResetParent();
        }
Exemplo n.º 4
0
        private PARAMETEROBJECTNAME(PARAMETEROBJECTNAME source) : this()   // V1.2.3300, Clone
        {
            ADP.CheckArgumentNull(source, "source");

            source.CloneHelper(this);

            ICloneable cloneable = (_value as ICloneable);

            if (null != cloneable)   // MDAC 49322
            {
                _value = cloneable.Clone();
            }
        }
Exemplo n.º 5
0
        private void CloneHelperCore(PARAMETEROBJECTNAME destination)
        {
            destination._value = _value;
            // NOTE: _parent is not cloned
            destination._direction = _direction;
            destination._size      = _size;
#if USEOFFSET
            destination._offset = _offset;
#endif
            destination._sourceColumn            = _sourceColumn;
            destination._sourceVersion           = _sourceVersion;
            destination._sourceColumnNullMapping = _sourceColumnNullMapping;
            destination._isNullable = _isNullable;
        }
        private void CloneHelperCore(PARAMETEROBJECTNAME destination) {
            destination._value                     = _value;
            // NOTE: _parent is not cloned
            destination._direction                 = _direction;
            destination._size                      = _size;
#if USEOFFSET
            destination._offset                    = _offset;
#endif
            destination._sourceColumn              = _sourceColumn;
            destination._sourceVersion             = _sourceVersion;
            destination._sourceColumnNullMapping   = _sourceColumnNullMapping;
            destination._isNullable                = _isNullable;
        }