public void CopyFrom(XS_attachmentsType attachmentsType_in) { int _index = -1; this.attachmentcollection_.Clear(); for (int d = 0; d < attachmentsType_in.attachmentcollection_.Count; d++) { this.attachmentcollection_.Add( out _index, new XS_attachmentType() ); this.attachmentcollection_[_index].CopyFrom( attachmentsType_in.attachmentcollection_[d] ); } }