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

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (name_ != null)
            {
                hash ^= Name.GetHashCode();
            }
            if (manufacturerName_ != null)
            {
                hash ^= ManufacturerName.GetHashCode();
            }
            if (operatingSystemName_ != null)
            {
                hash ^= OperatingSystemName.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            if (HasManufacturerName)
            {
                hash ^= ManufacturerName.GetHashCode();
            }
            if (HasOperatingSystemName)
            {
                hash ^= OperatingSystemName.GetHashCode();
            }
            if (Type != global::Google.Ads.GoogleAds.V6.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }