Ejemplo n.º 1
0
 /// <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 (Phoneid != null)
         {
             hashCode = hashCode * 59 + Phoneid.GetHashCode();
         }
         if (FeedbackType != null)
         {
             hashCode = hashCode * 59 + FeedbackType.GetHashCode();
         }
         if (FeedbackValue != null)
         {
             hashCode = hashCode * 59 + FeedbackValue.GetHashCode();
         }
         if (FeedbackMessage != null)
         {
             hashCode = hashCode * 59 + FeedbackMessage.GetHashCode();
         }
         if (FeedbackLat != null)
         {
             hashCode = hashCode * 59 + FeedbackLat.GetHashCode();
         }
         if (FeedbackLon != null)
         {
             hashCode = hashCode * 59 + FeedbackLon.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 /// <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 (Count != null)
         {
             hashCode = hashCode * 59 + Count.GetHashCode();
         }
         if (FeedbackType != null)
         {
             hashCode = hashCode * 59 + FeedbackType.GetHashCode();
         }
         if (FeedbackMeanvalue != null)
         {
             hashCode = hashCode * 59 + FeedbackMeanvalue.GetHashCode();
         }
         return(hashCode);
     }
 }