示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (Api.Length != 0)
            {
                hash ^= Api.GetHashCode();
            }
            if (Code != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            if (Count != 0)
            {
                hash ^= Count.GetHashCode();
            }
            if (Picture.Length != 0)
            {
                hash ^= Picture.GetHashCode();
            }
            if (Age != 0)
            {
                hash ^= Age.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Gender.Length != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Company.Length != 0)
            {
                hash ^= Company.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (Phone.Length != 0)
            {
                hash ^= Phone.GetHashCode();
            }
            if (Address.Length != 0)
            {
                hash ^= Address.GetHashCode();
            }
            if (About.Length != 0)
            {
                hash ^= About.GetHashCode();
            }
            if (Registered.Length != 0)
            {
                hash ^= Registered.GetHashCode();
            }
            if (Latitude != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Longitude);
            }
            hash ^= tags_.GetHashCode();
            if (IsActive != false)
            {
                hash ^= IsActive.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }