Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/08/10 03:43:36 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on parameters and operators
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/BoolData.cs

    r2694 r2757  
    3131  [Item("BoolData", "Represents a boolean value.")]
    3232  [Creatable("Test")]
    33   public sealed class BoolData : ValueTypeData<bool>, IStringConvertibleData {
     33  public sealed class BoolData : ValueTypeData<bool>, IComparable, IStringConvertibleData {
    3434    public BoolData() : base() { }
    3535    public BoolData(bool value) : base(value) { }
     
    3939      cloner.RegisterClonedObject(this, clone);
    4040      return clone;
     41    }
     42
     43    public int CompareTo(object obj) {
     44      BoolData other = obj as BoolData;
     45      if (other != null)
     46        return Value.CompareTo(other.Value);
     47      else
     48        return Value.CompareTo(obj);
    4149    }
    4250
Note: See TracChangeset for help on using the changeset viewer.