Changeset 2526 for trunk/sources/HeuristicLab.Logging/3.3
- Timestamp:
- 11/23/09 16:43:34 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Logging/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Logging/3.3/Linechart.cs
r2520 r2526 85 85 /// Clones the current instance (deep clone). 86 86 /// </summary> 87 /// <remarks>Deep clone through <see cref=" Auxiliary.Clone"/> method of helper class87 /// <remarks>Deep clone through <see cref="cloner.Clone"/> method of helper class 88 88 /// <see cref="Auxiliary"/>.</remarks> 89 89 /// <param name="clonedObjects">Dictionary of all already clone objects. (Needed to avoid cycles.)</param> 90 90 /// <returns>The cloned object as <see cref="Linechart"/>.</returns> 91 public override object Clone(IDictionary<Guid, object> clonedObjects) {92 Linechart clone = (Linechart)base.Clone(clone dObjects);93 clone.myNumberOfLines = (IntData) Auxiliary.Clone(myNumberOfLines, clonedObjects);94 clone.myValues = (ItemList) Auxiliary.Clone(Values, clonedObjects);91 public override IItem Clone(ICloner cloner) { 92 Linechart clone = (Linechart)base.Clone(cloner); 93 clone.myNumberOfLines = (IntData)cloner.Clone(myNumberOfLines); 94 clone.myValues = (ItemList)cloner.Clone(Values); 95 95 return clone; 96 96 } -
trunk/sources/HeuristicLab.Logging/3.3/Log.cs
r2520 r2526 59 59 /// Clones the current instance (deep clone). 60 60 /// </summary> 61 /// <remarks>Deep clone through <see cref=" Auxiliary.Clone"/> method of helper class61 /// <remarks>Deep clone through <see cref="cloner.Clone"/> method of helper class 62 62 /// <see cref="Auxiliary"/>.</remarks> 63 63 /// <param name="clonedObjects">Dictionary of all already clone objects. (Needed to avoid cycles.)</param> 64 64 /// <returns>The cloned object as <see cref="Log"/>.</returns> 65 public override object Clone(IDictionary<Guid, object> clonedObjects) {66 Log clone = (Log)base.Clone(clone dObjects);67 clone.myItems = (ItemList) Auxiliary.Clone(Items, clonedObjects);65 public override IItem Clone(ICloner cloner) { 66 Log clone = (Log)base.Clone(cloner); 67 clone.myItems = (ItemList)cloner.Clone(Items); 68 68 return clone; 69 69 } -
trunk/sources/HeuristicLab.Logging/3.3/PointXYChart.cs
r2520 r2526 87 87 /// Clones the current instance (deep clone). 88 88 /// </summary> 89 /// <remarks>Deep clone through <see cref=" Auxiliary.Clone"/> method of helper class89 /// <remarks>Deep clone through <see cref="cloner.Clone"/> method of helper class 90 90 /// <see cref="Auxiliary"/>.</remarks> 91 91 /// <param name="clonedObjects">Dictionary of all already clone objects. (Needed to avoid cycles.)</param> 92 92 /// <returns>The cloned object as <see cref="PointXYChart"/>.</returns> 93 public override object Clone(IDictionary<Guid, object> clonedObjects) {94 PointXYChart clone = (PointXYChart)base.Clone(clone dObjects);95 clone.myValues = (ItemList) Auxiliary.Clone(Values, clonedObjects);93 public override IItem Clone(ICloner cloner) { 94 PointXYChart clone = (PointXYChart)base.Clone(cloner); 95 clone.myValues = (ItemList)cloner.Clone(Values); 96 96 return clone; 97 97 }
Note: See TracChangeset
for help on using the changeset viewer.