public void CopyFrom(XS_rowType rowType_in) { int _index = -1; this.isheader_ = rowType_in.isheader_; this.cellcollection_.Clear(); for (int d = 0; d < rowType_in.cellcollection_.Count; d++) { this.cellcollection_.Add( out _index, new XS_cellType() ); this.cellcollection_[_index].CopyFrom( rowType_in.cellcollection_[d] ); } }