Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/31/10 11:36:07 (14 years ago)
Author:
abeham
Message:

#922

  • Fixed most of the errors that surfaced in the test cases
  • Removed storable attribute from SymbolicExpressionTreeStringFormatter
  • Modified StorableConstructorTest that the StorableConstructor may also be public (such as in BoolValue)
Location:
branches/CloningRefactoring/HeuristicLab.Selection/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Selection/3.3/GenderSpecificSelector.cs

    r4670 r4696  
    8181
    8282    [StorableConstructor]
    83     private GenderSpecificSelector(bool deserializing) : base(deserializing) { }
    84     [StorableHook(HookType.AfterDeserialization)]
    85     private void AfterDeserialization() {
    86       Initialize();
    87     }
    88 
     83    protected GenderSpecificSelector(bool deserializing) : base(deserializing) { }
    8984    protected GenderSpecificSelector(GenderSpecificSelector original, Cloner cloner)
    9085      : base(original, cloner) {
    9186      Initialize();
    92     }
    93     public override IDeepCloneable Clone(Cloner cloner) {
    94       return new GenderSpecificSelector(this, cloner);
    9587    }
    9688
     
    131123      #endregion
    132124
     125      Initialize();
     126    }
     127
     128    public override IDeepCloneable Clone(Cloner cloner) {
     129      return new GenderSpecificSelector(this, cloner);
     130    }
     131
     132    [StorableHook(HookType.AfterDeserialization)]
     133    private void AfterDeserialization() {
    133134      Initialize();
    134135    }
  • branches/CloningRefactoring/HeuristicLab.Selection/3.3/OffspringSelector.cs

    r4670 r4696  
    6363
    6464    [StorableConstructor]
    65     private OffspringSelector(bool deserializing) : base(deserializing) { }
    66     private OffspringSelector(OffspringSelector original, Cloner cloner)
    67       : base(original, cloner) {
    68     }
     65    protected OffspringSelector(bool deserializing) : base(deserializing) { }
     66    protected OffspringSelector(OffspringSelector original, Cloner cloner) : base(original, cloner) { }
    6967    public override IDeepCloneable Clone(Cloner cloner) {
    7068      return new OffspringSelector(this, cloner);
Note: See TracChangeset for help on using the changeset viewer.