Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 18:28:32 (13 years ago)
Author:
swagner
Message:

Finished cloning refactoring of HeuristicLab.Parameters and simplified cloning code of HeuristicLab.Core (#922)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Parameters/3.3/Parameter.cs

    r4477 r4671  
    7777    }
    7878
     79    [StorableConstructor]
     80    protected Parameter(bool deserializing) : base(deserializing) { }
     81    protected Parameter(Parameter original, Cloner cloner)
     82      : base(original, cloner) {
     83      dataType = original.dataType;
     84      executionContext = cloner.Clone(original.executionContext);
     85    }
    7986    protected Parameter()
    8087      : base("Anonymous") {
     
    9198      this.dataType = dataType;
    9299    }
    93     [StorableConstructor]
    94     protected Parameter(bool deserializing) : base(deserializing) { }
    95 
    96     public override IDeepCloneable Clone(Cloner cloner) {
    97       Parameter clone = (Parameter)base.Clone(cloner);
    98       clone.dataType = dataType;
    99       clone.executionContext = (IExecutionContext)cloner.Clone(executionContext);
    100       return clone;
    101     }
    102100
    103101    public override string ToString() {
Note: See TracChangeset for help on using the changeset viewer.