Changeset 2526 for trunk/sources/HeuristicLab.Data/3.3/ObjectData.cs
- Timestamp:
- 11/23/09 16:43:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/ObjectData.cs
r1842 r2526 52 52 /// Clones the current instance. 53 53 /// </summary> 54 /// <remarks>HeuristicLab data items are cloned with the <see cref="HeuristicLab.Core. Auxiliary.Clone"/> method of54 /// <remarks>HeuristicLab data items are cloned with the <see cref="HeuristicLab.Core.cloner.Clone"/> method of 55 55 /// class <see cref="Auxiliary"/> (deep copy), all other items (like basic data types) 56 56 /// are cloned with their own <c>Clone</c> methods (shadow copy).</remarks> … … 58 58 /// <param name="clonedObjects">A dictionary of all already cloned objects.</param> 59 59 /// <returns>The clone instance.</returns> 60 public override object Clone(IDictionary<Guid, object> clonedObjects) {61 ObjectData clone = (ObjectData)base.Clone(clone dObjects);62 if (Data is I Storable)63 clone.myData = Auxiliary.Clone((IStorable)Data, clonedObjects);60 public override IItem Clone(ICloner cloner) { 61 ObjectData clone = (ObjectData)base.Clone(cloner); 62 if (Data is IItem) 63 clone.myData = cloner.Clone((IItem)Data); 64 64 else if (Data is ICloneable) 65 65 clone.myData = ((ICloneable)Data).Clone();
Note: See TracChangeset
for help on using the changeset viewer.