Exemple #1
0
        public override int GetHashCode()
        {
            var hc   = 21;
            var salt = 571;

            unchecked
            {
                hc = (hc * salt) + ContactType.GetHashCode();
                hc = (hc * salt) + ContactMethod.GetHashCode();
                hc = (hc * salt) + ContactValue.GetHashCode();
            }
            return(hc);
        }
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.contact)
            {
                hashcode = (hashcode * 397) + Contact.GetHashCode();
            }
            if (__isset.luid)
            {
                hashcode = (hashcode * 397) + Luid.GetHashCode();
            }
            if (__isset.contactType)
            {
                hashcode = (hashcode * 397) + ContactType.GetHashCode();
            }
            if (__isset.contactKey)
            {
                hashcode = (hashcode * 397) + ContactKey.GetHashCode();
            }
        }
        return(hashcode);
    }