Changeset 2526 for trunk/sources/HeuristicLab.Core/3.3/OperatorLibrary.cs
- Timestamp:
- 11/23/09 16:43:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/OperatorLibrary.cs
r2520 r2526 51 51 /// Clones the current instance (deep clone). 52 52 /// </summary> 53 /// <remarks>Deep clone through <see cref=" Auxiliary.Clone"/> method of helper class53 /// <remarks>Deep clone through <see cref="cloner.Clone"/> method of helper class 54 54 /// <see cref="Auxiliary"/>.</remarks> 55 55 /// <param name="clonedObjects">Dictionary of all already cloned objects. (Needed to avoid cycles.)</param> 56 56 /// <returns>The cloned object as <see cref="OperatorLibrary"/>.</returns> 57 public override object Clone(IDictionary<Guid, object> clonedObjects) {57 public override IItem Clone(ICloner cloner) { 58 58 OperatorLibrary clone = new OperatorLibrary(); 59 clone dObjects.Add(Guid, clone);60 clone.myGroup = (IOperatorGroup) Auxiliary.Clone(Group, clonedObjects);59 cloner.RegisterClonedObject(this, clone); 60 clone.myGroup = (IOperatorGroup)cloner.Clone(Group); 61 61 return clone; 62 62 }
Note: See TracChangeset
for help on using the changeset viewer.