public void CopyFrom(XS_metadataType metadataType_in) { int _index = -1; this.applicationname_ = metadataType_in.applicationname_; this.namespace_ = metadataType_in.namespace_; this.casetype_ = metadataType_in.casetype_; this.allowsettersonobjects_ = metadataType_in.allowsettersonobjects_; this.issimple_ = metadataType_in.issimple_; this.prefix_ = metadataType_in.prefix_; this.prefixgenerated_ = metadataType_in.prefixgenerated_; this.prefixbase_ = metadataType_in.prefixbase_; this.prefixbasegenerated_ = metadataType_in.prefixbasegenerated_; this.copyrighttext_ = metadataType_in.copyrighttext_; this.copyrighttextlong_ = metadataType_in.copyrighttextlong_; this.metadataindexcollection_.Clear(); for (int d = 0; d < metadataType_in.metadataindexcollection_.Count; d++) { this.metadataindexcollection_.Add( out _index, new XS_metadataIndexType() ); this.metadataindexcollection_[_index].CopyFrom( metadataType_in.metadataindexcollection_[d] ); } this.specificcasecollection_.Clear(); for (int d = 0; d < metadataType_in.specificcasecollection_.Count; d++) { this.specificcasecollection_.Add( out _index, new XS_specificCaseType() ); this.specificcasecollection_[_index].CopyFrom( metadataType_in.specificcasecollection_[d] ); } this.complextypecollection_.Clear(); for (int d = 0; d < metadataType_in.complextypecollection_.Count; d++) { this.complextypecollection_.Add( out _index, new XS_complexTypeType() ); this.complextypecollection_[_index].CopyFrom( metadataType_in.complextypecollection_[d] ); } }