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

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasKeywordPlanCampaign)
            {
                hash ^= KeywordPlanCampaign.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasText)
            {
                hash ^= Text.GetHashCode();
            }
            if (MatchType != global::Google.Ads.GoogleAds.V10.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified)
            {
                hash ^= MatchType.GetHashCode();
            }
            if (HasNegative)
            {
                hash ^= Negative.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 (keywordPlanAdGroup_ != null)
            {
                hash ^= KeywordPlanAdGroup.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (text_ != null)
            {
                hash ^= Text.GetHashCode();
            }
            if (MatchType != 0)
            {
                hash ^= MatchType.GetHashCode();
            }
            if (cpcBidMicros_ != null)
            {
                hash ^= CpcBidMicros.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (keywordPlanAdGroup_ != null)
            {
                hash ^= KeywordPlanAdGroup.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (text_ != null)
            {
                hash ^= Text.GetHashCode();
            }
            if (MatchType != global::Google.Ads.GoogleAds.V3.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified)
            {
                hash ^= MatchType.GetHashCode();
            }
            if (cpcBidMicros_ != null)
            {
                hash ^= CpcBidMicros.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
ファイル: MatchModel.cs プロジェクト: ivivanov/SportOdds
        public override int GetHashCode()
        {
            int hash = Id.GetHashCode()
                       ^ Name.GetHashCode()
                       ^ StartDate.GetHashCode()
                       ^ MatchType.GetHashCode();

            if (HasBets)
            {
                return(hash ^ Bets.Aggregate(0, (acc, x) => acc ^ x.GetHashCode()));
            }

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

                    if (MatchType != 0)
                    {
                        hash ^= MatchType.GetHashCode();
                    }
                    if (StartTime != 0L)
                    {
                        hash ^= StartTime.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }