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/StringData.cs

    r2694 r2757  
    3131  [Item("StringData", "Represents a string.")]
    3232  [Creatable("Test")]
    33   public sealed class StringData : Item, IStringConvertibleData {
     33  public sealed class StringData : Item, IComparable, IStringConvertibleData {
    3434    [Storable]
    3535    private string value;
     
    6363    }
    6464
     65    public int CompareTo(object obj) {
     66      StringData other = obj as StringData;
     67      if (other != null)
     68        return Value.CompareTo(other.Value);
     69      else
     70        return Value.CompareTo(obj);
     71    }
     72
    6573    #region IStringConvertibleData Members
    6674    bool IStringConvertibleData.Validate(string value, out string errorMessage) {
Note: See TracChangeset for help on using the changeset viewer.