コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (identityKeyPublicOneofCase_ == IdentityKeyPublicOneofOneofCase.IdentityKeyPublic)
            {
                hash ^= IdentityKeyPublic.GetHashCode();
            }
            if (identityKeyPrivateOneofCase_ == IdentityKeyPrivateOneofOneofCase.IdentityKeyPrivate)
            {
                hash ^= IdentityKeyPrivate.GetHashCode();
            }
            if (numberOneofCase_ == NumberOneofOneofCase.Number)
            {
                hash ^= Number.GetHashCode();
            }
            if (provisioningCodeOneofCase_ == ProvisioningCodeOneofOneofCase.ProvisioningCode)
            {
                hash ^= ProvisioningCode.GetHashCode();
            }
            hash ^= (int)identityKeyPublicOneofCase_;
            hash ^= (int)identityKeyPrivateOneofCase_;
            hash ^= (int)numberOneofCase_;
            hash ^= (int)provisioningCodeOneofCase_;
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (identityKeyPublicOneofCase_ == IdentityKeyPublicOneofOneofCase.IdentityKeyPublic)
            {
                hash ^= IdentityKeyPublic.GetHashCode();
            }
            if (identityKeyPrivateOneofCase_ == IdentityKeyPrivateOneofOneofCase.IdentityKeyPrivate)
            {
                hash ^= IdentityKeyPrivate.GetHashCode();
            }
            if (numberOneofCase_ == NumberOneofOneofCase.Number)
            {
                hash ^= Number.GetHashCode();
            }
            if (provisioningCodeOneofCase_ == ProvisioningCodeOneofOneofCase.ProvisioningCode)
            {
                hash ^= ProvisioningCode.GetHashCode();
            }
            if (userAgentOneofCase_ == UserAgentOneofOneofCase.UserAgent)
            {
                hash ^= UserAgent.GetHashCode();
            }
            if (profileKeyOneofCase_ == ProfileKeyOneofOneofCase.ProfileKey)
            {
                hash ^= ProfileKey.GetHashCode();
            }
            hash ^= (int)identityKeyPublicOneofCase_;
            hash ^= (int)identityKeyPrivateOneofCase_;
            hash ^= (int)numberOneofCase_;
            hash ^= (int)provisioningCodeOneofCase_;
            hash ^= (int)userAgentOneofCase_;
            hash ^= (int)profileKeyOneofCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasIdentityKeyPublic)
            {
                hash ^= IdentityKeyPublic.GetHashCode();
            }
            if (HasIdentityKeyPrivate)
            {
                hash ^= IdentityKeyPrivate.GetHashCode();
            }
            if (HasNumber)
            {
                hash ^= Number.GetHashCode();
            }
            if (HasProvisioningCode)
            {
                hash ^= ProvisioningCode.GetHashCode();
            }
            if (HasUserAgent)
            {
                hash ^= UserAgent.GetHashCode();
            }
            if (HasProfileKey)
            {
                hash ^= ProfileKey.GetHashCode();
            }
            if (HasReadReceipts)
            {
                hash ^= ReadReceipts.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }