Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 17:37:02 (13 years ago)
Author:
abeham
Message:

#922

  • Refactored HeuristicLab.Encodings.PermutationEncoding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationType.cs

    r3436 r4667  
    3434    }
    3535
     36    [StorableConstructor]
     37    protected PermutationType(bool deserializing) : base(deserializing) { }
     38    protected PermutationType(PermutationType original, Cloner cloner) : base(original, cloner) { }
    3639    public PermutationType() : base() { }
    3740    public PermutationType(PermutationTypes type) : base(type) { }
    3841
    3942    public override IDeepCloneable Clone(Cloner cloner) {
    40       PermutationType clone = new PermutationType(value);
    41       cloner.RegisterClonedObject(this, clone);
    42       return clone;
     43      return new PermutationType(this, cloner);
    4344    }
    4445  }
Note: See TracChangeset for help on using the changeset viewer.