Free cookie consent management tool by TermsFeed Policy Generator

Changeset 508 for trunk


Ignore:
Timestamp:
08/13/08 12:15:45 (16 years ago)
Author:
gkronber
Message:

fixed a bug in ObjectData.Equals() (tickets #239 and #254)

File:
1 edited

Legend:

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

    r66 r508  
    5151
    5252    public override bool Equals(object obj) {
     53      if(obj == this) return true; // same instance
    5354      IObjectData other = obj as IObjectData;
    54       if (other != null)
    55         return Data.Equals(other);
     55      if(other != null)
     56        return Data.Equals(other.Data); // are the contained Data the same?
    5657      else
    57         return Data.Equals(obj);
     58        return false;
    5859    }
    5960
Note: See TracChangeset for help on using the changeset viewer.