public override Object Clone() { ObjRecord rec = new ObjRecord(); for (int i = 0; i < subrecords.Count; i++) { SubRecord record = subrecords[i]; rec.AddSubRecord((SubRecord)record.Clone()); } return(rec); }