Changeset 2757 for trunk/sources/HeuristicLab.Data/3.3/IntData.cs
- Timestamp:
- 02/08/10 03:43:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/IntData.cs
r2694 r2757 31 31 [Item("IntData", "Represents an integer value.")] 32 32 [Creatable("Test")] 33 public sealed class IntData : ValueTypeData<int>, I StringConvertibleData {33 public sealed class IntData : ValueTypeData<int>, IComparable, IStringConvertibleData { 34 34 public IntData() : base() { } 35 35 public IntData(int value) : base(value) { } … … 39 39 cloner.RegisterClonedObject(this, clone); 40 40 return clone; 41 } 42 43 public int CompareTo(object obj) { 44 IntData other = obj as IntData; 45 if (other != null) 46 return Value.CompareTo(other.Value); 47 else 48 return Value.CompareTo(obj); 41 49 } 42 50
Note: See TracChangeset
for help on using the changeset viewer.