コード例 #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);
 }
コード例 #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);
 }