Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/13/10 06:41:56 (14 years ago)
Author:
swagner
Message:

Implemented ReadOnlyView property for items (#969).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/OperationCollection.cs

    r3017 r3317  
    2626namespace HeuristicLab.Core {
    2727  [StorableClass]
    28   public class OperationCollection : DeepCloneable, IList<IOperation>, IOperation {
     28  public sealed class OperationCollection : DeepCloneable, IList<IOperation>, IOperation {
    2929    [Storable]
    3030    private IList<IOperation> operations;
     
    5151
    5252    public override IDeepCloneable Clone(Cloner cloner) {
    53       OperationCollection clone = new OperationCollection(this.Select(x => (IOperation)cloner.Clone(x)));
    54       cloner.RegisterClonedObject(this, clone);
     53      OperationCollection clone = (OperationCollection)base.Clone(cloner);
     54      clone.operations = new List<IOperation>(this.Select(x => (IOperation)cloner.Clone(x)));
    5555      clone.parallel = parallel;
    5656      return clone;
Note: See TracChangeset for help on using the changeset viewer.