Changeset 2526 for trunk/sources/HeuristicLab.Data/3.3/ItemList_T.cs
- Timestamp:
- 11/23/09 16:43:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/ItemList_T.cs
r2520 r2526 52 52 /// <param name="clonedObjects">A dictionary of all already cloned objects.</param> 53 53 /// <returns>The cloned instance as <see cref="ItemList<T>"/>.</returns> 54 public override object Clone(IDictionary<Guid, object> clonedObjects) {54 public override IItem Clone(ICloner cloner) { 55 55 ItemList<T> clone = new ItemList<T>(); 56 clone dObjects.Add(Guid, clone);57 CloneElements(clone , clonedObjects);56 cloner.RegisterClonedObject(this, clone); 57 CloneElements(cloner, clone); 58 58 return clone; 59 59 } … … 66 66 /// <param name="destination">The <see cref="ItemList<T>"/> where to save the cloned objects.</param> 67 67 /// <param name="clonedObjects">A dictionary of all already cloned objects.</param> 68 protected void CloneElements(I temList<T> destination, IDictionary<Guid, object> clonedObjects) {68 protected void CloneElements(ICloner cloner, ItemList<T> destination) { 69 69 for (int i = 0; i < list.Count; i++) 70 destination.list.Add((T) Auxiliary.Clone(list[i], clonedObjects));70 destination.list.Add((T)cloner.Clone(list[i])); 71 71 } 72 72
Note: See TracChangeset
for help on using the changeset viewer.