Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 17:38:42 (13 years ago)
Author:
swagner
Message:

Finished cloning refactoring of HeuristicLab.Common, HeuristicLab.Collections and HeuristicLab.Core (#922)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Core/3.3/Constraints/ComparisonConstraint.cs

    r4153 r4668  
    2222using System;
    2323using System.Collections.Generic;
     24using HeuristicLab.Common;
    2425using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2526
     
    3031    [StorableConstructor]
    3132    protected ComparisonConstraint(bool deserializing) : base(deserializing) { }
    32 
     33    protected ComparisonConstraint(ComparisonConstraint original, Cloner cloner) : base(original, cloner) { }
    3334    public ComparisonConstraint() : base() { }
    3435    public ComparisonConstraint(IItem constrainedValue, ConstraintOperation comparisonOperation, object comparisonValue)
     
    4142    public override IEnumerable<ConstraintOperation> AllowedConstraintOperations {
    4243      get { return new ConstraintOperation[6] { ConstraintOperation.Less, ConstraintOperation.LessOrEqual, ConstraintOperation.Equal, ConstraintOperation.GreaterOrEqual, ConstraintOperation.Greater, ConstraintOperation.NotEqual }; }
     44    }
     45
     46    public override IDeepCloneable Clone(Cloner cloner) {
     47      return new ComparisonConstraint(this, cloner);
    4348    }
    4449
Note: See TracChangeset for help on using the changeset viewer.