public override int GetHashCode() { unchecked { var hashCode = 0; hashCode = RoleId.GetHashCode(); hashCode = (hashCode * 397) ^ UserId.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = UserId.GetHashCode(); hashCode = (hashCode * 397) ^ PlaylistId.GetHashCode(); hashCode = (hashCode * 397) ^ StringComparer.InvariantCultureIgnoreCase.GetHashCode(Name); return(hashCode); } }
/// <summary> /// Gets the hash code for this <see cref="CommandCooldownBucket"/>. /// </summary> /// <returns>The hash code for this <see cref="CommandCooldownBucket"/>.</returns> public override int GetHashCode() { int hash = 13; hash = (hash * 7) + UserId.GetHashCode(); hash = (hash * 7) + ChannelId.GetHashCode(); hash = (hash * 7) + GuildId.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { int result = UserId != null?UserId.GetHashCode() : 0; result = (result * 397) ^ (TenantId != null ? TenantId.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { unchecked { int hashCode = (UserId != null ? UserId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Generates a hashcode for use in hash based containers. /// Implementation auto-generated by Resharper, along with mysterious magic numbers. /// Presumably R#'s numbers are intended to give reasonably well distributed hash-bucket allocations. /// </summary> /// <returns>int hashcode for the Installation data.</returns> public override int GetHashCode() { var hashCode = -308356996; hashCode = hashCode * -1521134295 + ComputerId.GetHashCode(); hashCode = hashCode * -1521134295 + UserId.GetHashCode(); hashCode = hashCode * -1521134295 + ApplicationId.GetHashCode(); hashCode = hashCode * -1521134295 + ComputerType.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashCode = 1187969077; hashCode = hashCode * -1521134295 + Id.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); hashCode = hashCode * -1521134295 + UserId.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { int hash = GetType().GetHashCode(); hash = (hash * 31) ^ UserId.GetHashCode(); hash = (hash * 31) ^ BookId.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { int hash = GetType().GetHashCode(); hash = (hash * 31) ^ UserId.GetHashCode(); hash = (hash * 31) ^ LoginProvider.GetHashCode(); hash = (hash * 31) ^ Name.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ UserId.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (InvitedEmail != null ? InvitedEmail.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (InvitedUserId != null ? InvitedUserId.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ UserId.GetHashCode(); hashCode = (hashCode * randomPrime) ^ FollowerId.GetHashCode(); hashCode = (hashCode * randomPrime) ^ FollowedAt.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (LoginProvider != null ? LoginProvider.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (ProviderKey != null ? ProviderKey.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ UserId.GetHashCode(); return(hashCode); } }