private Add ( |
||
value | ||
리턴 |
object ICloneable.Clone() { DataTableMapping clone = new DataTableMapping(); clone._dataSetTableName = _dataSetTableName; clone._sourceTableName = _sourceTableName; if ((null != _columnMappings) && (0 < ColumnMappings.Count)) { DataColumnMappingCollection parameters = clone.ColumnMappings; foreach (ICloneable parameter in ColumnMappings) { parameters.Add(parameter.Clone()); } } return clone; }
object ICloneable.Clone() { DataTableMapping mapping = new DataTableMapping { _dataSetTableName = this._dataSetTableName, _sourceTableName = this._sourceTableName }; if ((this._columnMappings != null) && (0 < this.ColumnMappings.Count)) { DataColumnMappingCollection columnMappings = mapping.ColumnMappings; foreach (ICloneable cloneable in this.ColumnMappings) { columnMappings.Add(cloneable.Clone()); } } return(mapping); }
/// <include file='doc\DataTableMapping.uex' path='docs/doc[@for="DataTableMapping.ICloneable.Clone"]/*' /> /// <internalonly/> object ICloneable.Clone() { DataTableMapping clone = new DataTableMapping(); // MDAC 81448 clone.SourceTable = SourceTable; clone.DataSetTable = DataSetTable; if ((null != this.columnMappings) && (0 < ColumnMappings.Count)) { DataColumnMappingCollection parameters = clone.ColumnMappings; foreach (ICloneable parameter in ColumnMappings) { parameters.Add(parameter.Clone()); } } return(clone); }