Exemple #1
0
        /// <summary>
        /// Returns true if Carteirausuarioitem instances are equal
        /// </summary>
        /// <param name="other">Instance of Carteirausuarioitem to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Carteirausuarioitem other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     IdCarteira == other.IdCarteira ||
                     IdCarteira != null &&
                     IdCarteira.Equals(other.IdCarteira)
                     ) &&
                 (
                     Idplataforma == other.Idplataforma ||
                     Idplataforma != null &&
                     Idplataforma.Equals(other.Idplataforma)
                 ) &&
                 (
                     Idusuarioplataforma == other.Idusuarioplataforma ||
                     Idusuarioplataforma != null &&
                     Idusuarioplataforma.Equals(other.Idusuarioplataforma)
                 ));
        }
Exemple #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 (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);
     }
 }
Exemple #3
0
        /// <summary>
        /// Returns true if Carteirausuariodetalhado instances are equal
        /// </summary>
        /// <param name="other">Instance of Carteirausuariodetalhado to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Carteirausuariodetalhado other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     IdCarteira == other.IdCarteira ||
                     IdCarteira != null &&
                     IdCarteira.Equals(other.IdCarteira)
                     ) &&
                 (
                     Idplataforma == other.Idplataforma ||
                     Idplataforma != null &&
                     Idplataforma.Equals(other.Idplataforma)
                 ) &&
                 (
                     Idusuarioplataforma == other.Idusuarioplataforma ||
                     Idusuarioplataforma != null &&
                     Idusuarioplataforma.Equals(other.Idusuarioplataforma)
                 ) &&
                 (
                     Nome == other.Nome ||
                     Nome != null &&
                     Nome.Equals(other.Nome)
                 ) &&
                 (
                     Avatar == other.Avatar ||
                     Avatar != null &&
                     Avatar.Equals(other.Avatar)
                 ) &&
                 (
                     Email == other.Email ||
                     Email != null &&
                     Email.Equals(other.Email)
                 ) &&
                 (
                     Reputacao == other.Reputacao ||
                     Reputacao != null &&
                     Reputacao.Equals(other.Reputacao)
                 ));
        }
Exemple #4
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);
     }
 }