/// <summary> /// Checks equality for given context. /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(PatientContext other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.GuYear == GuYear && other.GuNumber == GuNumber && other.Description == Description); }
/// <summary> /// Checks equality for given context. /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(PatientContext other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } return (other.GuYear == GuYear && other.GuNumber == GuNumber && other.Description == Description); }