Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 16:58:29 (13 years ago)
Author:
mkommend
Message:

Refactored Optimization (ticket #922).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Optimization/3.3/ResultCollection.cs

    r4068 r4665  
    2121
    2222using System.Collections.Generic;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    3132    public ResultCollection(int capacity) : base(capacity) { }
    3233    public ResultCollection(IEnumerable<IResult> collection) : base(collection) { }
     34    [StorableConstructor]
     35    protected ResultCollection(bool deserializing) : base(deserializing) { }
     36    protected ResultCollection(ResultCollection original, Cloner cloner)
     37      : base(original, cloner) {
     38    }
     39    public override IDeepCloneable Clone(Cloner cloner) {
     40      return new ResultCollection(this, cloner);
     41    }
    3342  }
    3443}
Note: See TracChangeset for help on using the changeset viewer.