Changeset 4722 for trunk/sources/HeuristicLab.Core/3.3/ExecutionContext.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Core/3.3/ExecutionContext.cs
r4068 r4722 50 50 } 51 51 52 [StorableConstructor] 53 private ExecutionContext(bool deserializing) { } 54 private ExecutionContext(ExecutionContext original, Cloner cloner) 55 : base(original, cloner) { 56 parent = cloner.Clone(original.parent); 57 parameterizedItem = cloner.Clone(original.parameterizedItem); 58 scope = cloner.Clone(original.scope); 59 } 52 60 private ExecutionContext() { 53 61 parent = null; … … 63 71 64 72 public override IDeepCloneable Clone(Cloner cloner) { 65 ExecutionContext clone = new ExecutionContext(); 66 cloner.RegisterClonedObject(this, clone); 67 clone.parent = (IExecutionContext)cloner.Clone(parent); 68 clone.parameterizedItem = (IParameterizedItem)cloner.Clone(parameterizedItem); 69 clone.scope = (IScope)cloner.Clone(scope); 70 return clone; 73 return new ExecutionContext(this, cloner); 71 74 } 72 75
Note: See TracChangeset
for help on using the changeset viewer.