/// <summary> /// Overriden from base to compute a deterministic hashcode based on RelationshipType, Source, and Destination. /// </summary> /// <returns>An integer representing the hash code for this instance.</returns> public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 31 + base.GetHashCode(); hash = hash * 31 + RelationshipType.GetHashCode(); hash = hash * 31 + Source.GetHashCode(); hash = hash * 31 + Destination.GetHashCode(); return(hash); } }