Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/10 14:27:27 (13 years ago)
Author:
cneumuel
Message:

#1233 applied new cloning mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/UpTimeStatistics.cs

    r4629 r4796  
    3434    public DateTime Logout { get; set; }
    3535
     36    public UpTimeStatistics() { }
     37    protected UpTimeStatistics(UpTimeStatistics original, Cloner cloner) : base(original, cloner) {
     38      this.SlaveId = original.SlaveId;
     39      this.Login = original.Login;
     40      this.Logout = original.Logout;
     41    }
    3642    public override IDeepCloneable Clone(Cloner cloner) {
    37       var clone = (UpTimeStatistics)base.Clone(cloner);
    38       clone.SlaveId = this.SlaveId;
    39       clone.Login = this.Login;
    40       clone.Logout = this.Logout;
    41       return clone;
     43      return new UpTimeStatistics(this, cloner);
    4244    }
    4345  }
Note: See TracChangeset for help on using the changeset viewer.