Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/15/09 02:18:42 (15 years ago)
Author:
swagner
Message:

Refactoring of the operator architecture (#95)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Operator Architecture Refactoring/HeuristicLab.Core/3.3/Auxiliary.cs

    r2033 r2042  
    3030  /// </summary>
    3131  public static class Auxiliary {
    32     #region Cloning
    33     /// <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       else
    45         return obj.Clone(clonedObjects);
    46     }
    47     #endregion
    48 
    4932    #region Error Messages
    5033    /// <summary>
Note: See TracChangeset for help on using the changeset viewer.