예제 #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 (Idplataforma != null)
         {
             hashCode = hashCode * 59 + Idplataforma.GetHashCode();
         }
         if (Idusuarioplatafaorma != null)
         {
             hashCode = hashCode * 59 + Idusuarioplatafaorma.GetHashCode();
         }
         if (Nome != null)
         {
             hashCode = hashCode * 59 + Nome.GetHashCode();
         }
         if (Avatar != null)
         {
             hashCode = hashCode * 59 + Avatar.GetHashCode();
         }
         if (Email != null)
         {
             hashCode = hashCode * 59 + Email.GetHashCode();
         }
         if (Reputacao != null)
         {
             hashCode = hashCode * 59 + Reputacao.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #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 (IdCarteira != null)
         {
             hashCode = hashCode * 59 + IdCarteira.GetHashCode();
         }
         if (Idplataforma != null)
         {
             hashCode = hashCode * 59 + Idplataforma.GetHashCode();
         }
         if (Idusuarioplataforma != null)
         {
             hashCode = hashCode * 59 + Idusuarioplataforma.GetHashCode();
         }
         return(hashCode);
     }
 }