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

            if (AvailabilityMode != 0)
            {
                hash ^= AvailabilityMode.GetHashCode();
            }
            if (AdvertisingChannelType != 0)
            {
                hash ^= AdvertisingChannelType.GetHashCode();
            }
            hash ^= advertisingChannelSubType_.GetHashCode();
            if (includeDefaultChannelSubType_ != null)
            {
                hash ^= IncludeDefaultChannelSubType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AvailabilityMode != global::Google.Ads.GoogleAds.V8.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode.Unspecified)
            {
                hash ^= AvailabilityMode.GetHashCode();
            }
            if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V8.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified)
            {
                hash ^= AdvertisingChannelType.GetHashCode();
            }
            hash ^= advertisingChannelSubType_.GetHashCode();
            if (HasIncludeDefaultChannelSubType)
            {
                hash ^= IncludeDefaultChannelSubType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }