Changeset 4667 for branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationType.cs
- Timestamp:
- 10/29/10 17:37:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationType.cs
r3436 r4667 34 34 } 35 35 36 [StorableConstructor] 37 protected PermutationType(bool deserializing) : base(deserializing) { } 38 protected PermutationType(PermutationType original, Cloner cloner) : base(original, cloner) { } 36 39 public PermutationType() : base() { } 37 40 public PermutationType(PermutationTypes type) : base(type) { } 38 41 39 42 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); 43 44 } 44 45 }
Note: See TracChangeset
for help on using the changeset viewer.