Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/09 16:43:34 (15 years ago)
Author:
swagner
Message:

Refactored cloning (#806)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/ItemList.cs

    r1529 r2526  
    3737    /// <param name="clonedObjects">A dictionary of all already cloned objects.</param>
    3838    /// <returns>The cloned instance as <see cref="ItemList"/>.</returns>
    39     public override object Clone(IDictionary<Guid, object> clonedObjects) {
     39    public override IItem Clone(ICloner cloner) {
    4040      ItemList clone = new ItemList();
    41       clonedObjects.Add(Guid, clone);
    42       base.CloneElements(clone, clonedObjects);
     41      cloner.RegisterClonedObject(this, clone);
     42      base.CloneElements(cloner, clone);
    4343      return clone;
    4444    }
Note: See TracChangeset for help on using the changeset viewer.