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(); } }
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(); }
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(); }
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(); } }
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; }