Пример #1
0
        public override int GetHashCode()
        {
            var hashCode = -584914611;

            hashCode = hashCode * -1521134295 + EqualityComparer <Account[]> .Default.GetHashCode(Accounts);

            hashCode = hashCode * -1521134295 + DiscordUserId.GetHashCode();
            return(hashCode);
        }
            public override int GetHashCode()
            {
                unchecked {
                    var hashCode = Key != null?Key.GetHashCode() : 0;

                    hashCode = (hashCode * 397) ^ (int)KeyScope;
                    hashCode = (hashCode * 397) ^ ForumUserId.GetHashCode();
                    hashCode = (hashCode * 397) ^ DiscordUserId.GetHashCode();
                    hashCode = (hashCode * 397) ^ GuildId.GetHashCode();
                    hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode();
                    return(hashCode);
                }
            }
Пример #3
0
 public override int GetHashCode()
 {
     return(DiscordUserId.GetHashCode());
 }