Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }