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