Changeset 4659
- Timestamp:
- 10/29/10 14:55:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Core/3.3/Item.cs
r4477 r4659 45 45 } 46 46 47 protected Item() { }48 47 [StorableConstructor] 49 48 protected Item(bool deserializing) { } 49 protected Item(Item original, Cloner cloner) { 50 cloner.RegisterClonedObject(original, this); 51 } 52 protected Item() { } 50 53 51 54 public object Clone() { 52 55 return Clone(new Cloner()); 53 56 } 54 public virtual IDeepCloneable Clone(Cloner cloner) { 55 Item clone = (Item)Activator.CreateInstance(this.GetType(), true); 56 cloner.RegisterClonedObject(this, clone); 57 return clone; 58 } 57 public abstract IDeepCloneable Clone(Cloner cloner); 59 58 60 59 /// <summary>
Note: See TracChangeset
for help on using the changeset viewer.