Changeset 6233 for trunk/sources/HeuristicLab.Common
- Timestamp:
- 05/19/11 13:52:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Common/3.3/Cloner.cs
r5445 r6233 41 41 /// <param name="item">The object which should be cloned.</param> 42 42 /// <returns>A clone of the given object.</returns> 43 public IDeepCloneable Clone(IDeepCloneable obj) {44 if (obj == null) return null;45 IDeepCloneable clone;46 if (mapping.TryGetValue(obj, out clone))47 return clone;48 else49 return obj.Clone(this);50 }51 /// <summary>52 /// Creates a deep clone of a given deeply cloneable object.53 /// </summary>54 /// <param name="item">The object which should be cloned.</param>55 /// <returns>A clone of the given object.</returns>56 43 public T Clone<T>(T obj) where T : class, IDeepCloneable { 57 44 if (obj == null) return null;
Note: See TracChangeset
for help on using the changeset viewer.