示例#1
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = typeof(User).GetHashCode();
         hashCode ^= 7 * hashCode + 11 * Name.GetHashCode();
         hashCode ^= 7 * hashCode + 11 * PasswordSalt.GetHashCode();
         hashCode ^= 7 * hashCode + 11 * PasswordHash.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (PasswordHash == null ? 0 : PasswordHash.GetHashCode());
         hash = hash * 23 + (PasswordSalt == null ? 0 : PasswordSalt.GetHashCode());
         hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode());
         return(hash);
     }
 }