public MBCO_association_line_class Deep_copy() { MBCO_association_line_class copy = (MBCO_association_line_class)this.MemberwiseClone(); copy.ProcessID = (string)this.ProcessID.Clone(); copy.ProcessName = (string)this.ProcessName.Clone(); copy.Parent_processName = (string)this.Parent_processName.Clone(); copy.Symbol = (string)this.Symbol.Clone(); return(copy); }
public void Add_to_array(MBCO_association_line_class[] add_mbco_associations) { int this_length = this.MBCO_associations.Length; int add_length = add_mbco_associations.Length; int new_length = this_length + add_length; MBCO_association_line_class[] new_mbco_assoiations = new MBCO_association_line_class[new_length]; int indexNew = -1; for (int indexThis = 0; indexThis < this_length; indexThis++) { indexNew++; new_mbco_assoiations[indexNew] = this.MBCO_associations[indexThis]; } for (int indexAdd = 0; indexAdd < add_length; indexAdd++) { indexNew++; new_mbco_assoiations[indexNew] = add_mbco_associations[indexAdd]; } this.MBCO_associations = new_mbco_assoiations; }