Changeset 887 for branches/CloningRefactorBranch/HeuristicLab.Permutation
- Timestamp:
- 12/02/08 21:10:17 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactorBranch/HeuristicLab.Permutation/Permutation.cs
r2 r887 35 35 } 36 36 37 public Permutation(Permutation original) : this(original, new Dictionary<Guid, object>()) { } 38 protected Permutation(Permutation original, IDictionary<Guid, object> clonedObjects) 39 : base(original, clonedObjects) { 40 this.Data = (int[])original.Data.Clone(); 41 } 42 37 43 public override object Clone(IDictionary<Guid, object> clonedObjects) { 38 Permutation clone = new Permutation((int[])Data.Clone()); 39 clonedObjects.Add(Guid, clone); 40 return clone; 44 return new Permutation(this, clonedObjects); 41 45 } 42 46 }
Note: See TracChangeset
for help on using the changeset viewer.