Changeset 68
- Timestamp:
- 03/14/08 23:28:53 (17 years ago)
- Location:
- trunk/sources/HeuristicLab.Data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/ItemList.cs
r64 r68 32 32 ItemList clone = new ItemList(); 33 33 clonedObjects.Add(Guid, clone); 34 for (int i = 0; i < list.Count; i++) 35 clone.list.Add((IItem)Auxiliary.Clone(list[i], clonedObjects)); 34 base.CloneElements(clone, clonedObjects); 36 35 return clone; 37 36 } -
trunk/sources/HeuristicLab.Data/ItemList_T.cs
r64 r68 29 29 namespace HeuristicLab.Data { 30 30 public class ItemList<T> : ItemBase, IList<T> where T : IItem { 31 pr otectedList<T> list;31 private List<T> list; 32 32 33 33 public ItemList() { … … 42 42 ItemList<T> clone = new ItemList<T>(); 43 43 clonedObjects.Add(Guid, clone); 44 CloneElements(clone, clonedObjects); 45 return clone; 46 } 47 protected void CloneElements(ItemList<T> destination, IDictionary<Guid, object> clonedObjects) { 44 48 for (int i = 0; i < list.Count; i++) 45 clone.list.Add((T) Auxiliary.Clone(list[i], clonedObjects)); 46 return clone; 49 destination.list.Add((T)Auxiliary.Clone(list[i],clonedObjects)); 47 50 } 48 51
Note: See TracChangeset
for help on using the changeset viewer.