예제 #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = CategoryID.GetHashCode();
         hashCode = (hashCode * 397) ^ Dices?.GetHashCode() ?? 0;
         return(hashCode);
     }
 }
예제 #2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.name)
            {
                hashcode = (hashcode * 397) + Name.GetHashCode();
            }
            if (__isset.welcomeMessage)
            {
                hashcode = (hashcode * 397) + WelcomeMessage.GetHashCode();
            }
            if (__isset.profileImageObsHash)
            {
                hashcode = (hashcode * 397) + ProfileImageObsHash.GetHashCode();
            }
            if (__isset.desc)
            {
                hashcode = (hashcode * 397) + Desc.GetHashCode();
            }
            if (__isset.searchable)
            {
                hashcode = (hashcode * 397) + Searchable.GetHashCode();
            }
            if (__isset.type)
            {
                hashcode = (hashcode * 397) + Type.GetHashCode();
            }
            if (__isset.categoryID)
            {
                hashcode = (hashcode * 397) + CategoryID.GetHashCode();
            }
            if (__isset.invitationURL)
            {
                hashcode = (hashcode * 397) + InvitationURL.GetHashCode();
            }
            if (__isset.revision)
            {
                hashcode = (hashcode * 397) + Revision.GetHashCode();
            }
            if (__isset.ableToUseInvitationTicket)
            {
                hashcode = (hashcode * 397) + AbleToUseInvitationTicket.GetHashCode();
            }
            if (__isset.state)
            {
                hashcode = (hashcode * 397) + State.GetHashCode();
            }
        }
        return(hashcode);
    }
예제 #3
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 17;
                hash = hash * 23 + CategoryID.GetHashCode();

                return(hash);
            }
        }
예제 #4
0
        public override int GetHashCode()
        {
            var hashCode = 1145259212;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + Articul.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + EqualityComparer <Image> .Default.GetHashCode(Image);

            hashCode = hashCode * -1521134295 + CategoryID.GetHashCode();
            return(hashCode);
        }
예제 #5
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Id.GetHashCode();
                hashCode = (hashCode * 397) ^ ItemID.GetHashCode();
                hashCode = (hashCode * 397) ^ CategoryID.GetHashCode();
                if (Item != null)
                {
                    hashCode = (hashCode * 397) ^ Item.GetHashCode();
                }

                if (Category != null)
                {
                    hashCode = (hashCode * 397) ^ Category.GetHashCode();
                }
                return(hashCode);
            }
        }
예제 #6
0
 public override int GetHashCode()
 {
     return(CategoryID.GetHashCode() ^ Name.GetSafeHashCode()
            ^ Clsids.GetEnumHashCode());
 }