public override int GetHashCode() { int hash = GetType().GetHashCode(); hash = (hash * 397) ^ Businessentityid.GetHashCode(); hash = (hash * 397) ^ Personid.GetHashCode(); hash = (hash * 397) ^ Contacttypeid.GetHashCode(); return hash; }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (ThingId != null) { hashCode = hashCode * 59 + ThingId.GetHashCode(); } if (DatastreamId != null) { hashCode = hashCode * 59 + DatastreamId.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Personid != null) { hashCode = hashCode * 59 + Personid.GetHashCode(); } if (Zoneid != null) { hashCode = hashCode * 59 + Zoneid.GetHashCode(); } if (PhenomenTime != null) { hashCode = hashCode * 59 + PhenomenTime.GetHashCode(); } if (ObservationResult != null) { hashCode = hashCode * 59 + ObservationResult.GetHashCode(); } return(hashCode); } }