- Timestamp:
- Jan 23, 2011, 8:00:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGAppointments.cs
r1073 r1075 57 57 } 58 58 59 //smh test 60 //one problem: Hashtable is a shallow copy. 61 //so it shouldn't work. But let's see. 59 62 60 public object Clone() 63 61 { 64 CGAppointments appts = new CGAppointments(); 65 appts.apptList = (Hashtable)apptList.Clone(); 66 return appts; 62 CGAppointments newappts = new CGAppointments(); 63 //appts.apptList = (Hashtable)apptList.Clone(); 64 foreach (DictionaryEntry d in this.apptList) 65 { 66 newappts.apptList.Add(d.Key, d.Value); 67 } 68 69 return newappts; 67 70 } 68 71 }
Note:
See TracChangeset
for help on using the changeset viewer.