Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4916


Ignore:
Timestamp:
11/23/10 20:59:26 (14 years ago)
Author:
abeham
Message:

#1293

  • Changed according to mkommend's suggestions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/SymbolicExpressionTreeStringConverter.cs

    r4907 r4916  
    3030  [StorableClass]
    3131  public class SymbolicExpressionTreeStringConverter : SymbolicExpressionTreeConverter {
    32     SymbolicExpressionTreeStringFormatter formatter;
     32    private SymbolicExpressionTreeStringFormatter formatter;
    3333
    3434    [StorableConstructor]
    35     protected SymbolicExpressionTreeStringConverter(bool deserializing)
    36       : base(deserializing) {
    37       Initialize();
    38     }
     35    protected SymbolicExpressionTreeStringConverter(bool deserializing) : base(deserializing) { }
    3936    protected SymbolicExpressionTreeStringConverter(SymbolicExpressionTreeStringConverter original, Cloner cloner)
    4037      : base(original, cloner) {
    41       Initialize();
     38      formatter = new SymbolicExpressionTreeStringFormatter();
     39      formatter.Indent = original.formatter.Indent;
    4240    }
    4341    public SymbolicExpressionTreeStringConverter()
     
    4846    public override IDeepCloneable Clone(Cloner cloner) {
    4947      return new SymbolicExpressionTreeStringConverter(this, cloner);
     48    }
     49
     50    [StorableHook(HookType.AfterDeserialization)]
     51    private void AfterDeserialization() {
     52      Initialize();
    5053    }
    5154
Note: See TracChangeset for help on using the changeset viewer.