Changeset 13519
- Timestamp:
- 01/15/16 18:08:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Collections/CloneableCollection.cs
r11925 r13519 29 29 public CloneableCollection(IEnumerable<T> elements) : base(elements) { } 30 30 31 public object Clone() { return new CloneableCollection<T>(this); } 31 public CloneableCollection(CloneableCollection<T> original, Cloner cloner) : base(original) { 32 cloner.RegisterClonedObject(original, this); 33 } 32 34 33 public IDeepCloneable Clone(Cloner cloner) { return cloner.Clone(this); } 35 public object Clone() { return Clone(new Cloner()); } 36 37 public IDeepCloneable Clone(Cloner cloner) { return new CloneableCollection<T>(this, cloner); } 34 38 } 35 39
Note: See TracChangeset
for help on using the changeset viewer.