Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Core/3.3/Executable.cs

    r3372 r4722  
    6262    }
    6363
     64    [StorableConstructor]
     65    protected Executable(bool deserializing) : base(deserializing) { }
     66    protected Executable(Executable original, Cloner cloner)
     67      : base(original, cloner) {
     68      executionState = original.executionState;
     69      executionTime = original.executionTime;
     70    }
    6471    protected Executable() {
    6572      executionState = ExecutionState.Stopped;
    6673      executionTime = TimeSpan.Zero;
    67     }
    68     [StorableConstructor]
    69     protected Executable(bool deserializing) : base(deserializing) { }
    70 
    71     public override IDeepCloneable Clone(Cloner cloner) {
    72       Executable clone = (Executable)base.Clone(cloner);
    73       clone.executionState = executionState;
    74       clone.executionTime = executionTime;
    75       return clone;
    7674    }
    7775
Note: See TracChangeset for help on using the changeset viewer.