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

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasClientCustomer)
            {
                hash ^= ClientCustomer.GetHashCode();
            }
            if (HasHidden)
            {
                hash ^= Hidden.GetHashCode();
            }
            if (HasLevel)
            {
                hash ^= Level.GetHashCode();
            }
            if (HasTimeZone)
            {
                hash ^= TimeZone.GetHashCode();
            }
            if (HasTestAccount)
            {
                hash ^= TestAccount.GetHashCode();
            }
            if (HasManager)
            {
                hash ^= Manager.GetHashCode();
            }
            if (HasDescriptiveName)
            {
                hash ^= DescriptiveName.GetHashCode();
            }
            if (HasCurrencyCode)
            {
                hash ^= CurrencyCode.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            hash ^= appliedLabels_.GetHashCode();
            if (Status != global::Google.Ads.GoogleAds.V10.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified)
            {
                hash ^= Status.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 (HasClientCustomer)
            {
                hash ^= ClientCustomer.GetHashCode();
            }
            if (HasHidden)
            {
                hash ^= Hidden.GetHashCode();
            }
            if (HasLevel)
            {
                hash ^= Level.GetHashCode();
            }
            if (HasTimeZone)
            {
                hash ^= TimeZone.GetHashCode();
            }
            if (HasTestAccount)
            {
                hash ^= TestAccount.GetHashCode();
            }
            if (HasManager)
            {
                hash ^= Manager.GetHashCode();
            }
            if (HasDescriptiveName)
            {
                hash ^= DescriptiveName.GetHashCode();
            }
            if (HasCurrencyCode)
            {
                hash ^= CurrencyCode.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            hash ^= appliedLabels_.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 (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (descriptiveName_ != null)
            {
                hash ^= DescriptiveName.GetHashCode();
            }
            if (currencyCode_ != null)
            {
                hash ^= CurrencyCode.GetHashCode();
            }
            if (timeZone_ != null)
            {
                hash ^= TimeZone.GetHashCode();
            }
            if (trackingUrlTemplate_ != null)
            {
                hash ^= TrackingUrlTemplate.GetHashCode();
            }
            if (finalUrlSuffix_ != null)
            {
                hash ^= FinalUrlSuffix.GetHashCode();
            }
            if (autoTaggingEnabled_ != null)
            {
                hash ^= AutoTaggingEnabled.GetHashCode();
            }
            if (hasPartnersBadge_ != null)
            {
                hash ^= HasPartnersBadge.GetHashCode();
            }
            if (callReportingSetting_ != null)
            {
                hash ^= CallReportingSetting.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (clientCustomer_ != null)
            {
                hash ^= ClientCustomer.GetHashCode();
            }
            if (hidden_ != null)
            {
                hash ^= Hidden.GetHashCode();
            }
            if (level_ != null)
            {
                hash ^= Level.GetHashCode();
            }
            if (timeZone_ != null)
            {
                hash ^= TimeZone.GetHashCode();
            }
            if (testAccount_ != null)
            {
                hash ^= TestAccount.GetHashCode();
            }
            if (manager_ != null)
            {
                hash ^= Manager.GetHashCode();
            }
            if (descriptiveName_ != null)
            {
                hash ^= DescriptiveName.GetHashCode();
            }
            if (currencyCode_ != null)
            {
                hash ^= CurrencyCode.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #5
0
        public string GetDescriptiveTitle()
        {
            var attr = DescriptiveName.GetAttribute <EnumDescriptionAttribute>();

            return(attr.GetDescription());
        }
コード例 #6
0
        /// <summary>
        /// Returns a descriptive name of the <see cref="MethodBase"/>, including generic parameters.
        /// </summary>
        public static string GetDescriptiveName(this MethodBase method)
        {
            var descrptiveName = new DescriptiveName(method);

            return(descrptiveName.ToString( ));
        }
コード例 #7
0
        /// <summary>
        /// Returns a descriptive name of the <see cref="Type"/>, including generic parameters.
        /// </summary>
        public static string GetDescriptiveName(this Type type)
        {
            var descrptiveName = new DescriptiveName(type);

            return(descrptiveName.ToString( ));
        }