Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Nome != null ? Nome.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Cognome != null ? Cognome.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HashPass != null ? HashPass.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SaltPass != null ? SaltPass.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LoginRemoto.GetHashCode();
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Nome.GetHashCode() ^ Cognome.GetHashCode() ^ Cf.GetHashCode() ^ DataNascita.GetHashCode() ^
            LuogoNascita.GetHashCode() ^ Residenza.GetHashCode() ^ DataAssunzione.GetHashCode() ^ Qualifica.GetHashCode());
 }