public virtual bool Equals(MedicalRecord other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Reference, Reference)); }
public override int GetHashCode() { Log.Debug("Parent.GetHashCode()"); if (!hashCode.HasValue) { unchecked { int result = (MedicalRecord != null ? MedicalRecord.GetHashCode() : 0); result = (result * 397) ^ (Address != null ? Address.GetHashCode() : 0); result = (result * 397) ^ Visits; hashCode = result; } } return(hashCode.Value); }
public virtual bool Equals(MedicalRecord other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.Reference, Reference); }