Changeset 66


Ignore:
Timestamp:
03/14/08 01:16:03 (13 years ago)
Author:
swagner
Message:

Closed ticket #40

  • implemented Equals and GetHashCode in ObjectData
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/ObjectData.cs

    r2 r66  
    5050    }
    5151
     52    public override bool Equals(object obj) {
     53      IObjectData other = obj as IObjectData;
     54      if (other != null)
     55        return Data.Equals(other);
     56      else
     57        return Data.Equals(obj);
     58    }
     59
     60    public override int GetHashCode() {
     61      return Data.GetHashCode();
     62    }
     63
    5264    public int CompareTo(object obj) {
    5365      IComparable comparable = Data as IComparable;
Note: See TracChangeset for help on using the changeset viewer.