- Timestamp:
- 06/15/09 02:18:42 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Operator Architecture Refactoring/HeuristicLab.Core/3.3/Auxiliary.cs
r2033 r2042 30 30 /// </summary> 31 31 public static class Auxiliary { 32 #region Cloning33 /// <summary>34 /// Clones the given <paramref name="obj"/> (deep clone).35 /// </summary>36 /// <remarks>Checks before clone if object has not already been cloned.</remarks>37 /// <param name="obj">The object to clone.</param>38 /// <param name="clonedObjects">A dictionary of all already cloned objects. (Needed to avoid cycles.)</param>39 /// <returns>The cloned object.</returns>40 public static object Clone(ICloneable obj, IDictionary<long, object> clonedObjects) {41 object clone;42 if (clonedObjects.TryGetValue(obj.Id, out clone))43 return clone;44 else45 return obj.Clone(clonedObjects);46 }47 #endregion48 49 32 #region Error Messages 50 33 /// <summary>
Note: See TracChangeset
for help on using the changeset viewer.