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.Permutation/3.3/Permutation.cs

    r1530 r2526  
    2424using System.Text;
    2525using System.Xml;
     26using HeuristicLab.Core;
    2627using HeuristicLab.Data;
    2728
     
    5253    /// avoid cycles.)</param>
    5354    /// <returns>The cloned object as <see cref="Permutation"/>.</returns>
    54     public override object Clone(IDictionary<Guid, object> clonedObjects) {
     55    public override IItem Clone(ICloner cloner) {
    5556      Permutation clone = new Permutation((int[])Data.Clone());
    56       clonedObjects.Add(Guid, clone);
     57      cloner.RegisterClonedObject(this, clone);
    5758      return clone;
    5859    }
Note: See TracChangeset for help on using the changeset viewer.