Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/11/08 21:09:14 (16 years ago)
Author:
gkronber
Message:

added overrides for Equals and GetHashCode in Entity, Literal, SerializedLiteral to behave like values (equal means same uri or value). #200 (Simple indexer for results and matching search-frontend for solution-quality).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.DB.Interfaces/SerializedLiteral.cs

    r544 r552  
    3636      RawData = rawData;
    3737    }
     38
     39    public override bool Equals(object obj) {
     40      if(this == obj) return true;
     41      SerializedLiteral other = obj as SerializedLiteral;
     42      if(other == null) return false;
     43      else return other.RawData.Equals(this.RawData);
     44    }
     45
     46    public override int GetHashCode() {
     47      return RawData.GetHashCode();
     48    }
    3849  }
    3950}
Note: See TracChangeset for help on using the changeset viewer.