Changeset 2757 for trunk/sources/HeuristicLab.Data/3.3/BoolData.cs
- Timestamp:
- 02/08/10 03:43:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/BoolData.cs
r2694 r2757 31 31 [Item("BoolData", "Represents a boolean value.")] 32 32 [Creatable("Test")] 33 public sealed class BoolData : ValueTypeData<bool>, I StringConvertibleData {33 public sealed class BoolData : ValueTypeData<bool>, IComparable, IStringConvertibleData { 34 34 public BoolData() : base() { } 35 35 public BoolData(bool value) : base(value) { } … … 39 39 cloner.RegisterClonedObject(this, clone); 40 40 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); 41 49 } 42 50
Note: See TracChangeset
for help on using the changeset viewer.