Пример #1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.hasNext)
            {
                hashcode = (hashcode * 397) + HasNext.GetHashCode();
            }
            if (__isset.bannerSequence)
            {
                hashcode = (hashcode * 397) + BannerSequence.GetHashCode();
            }
            if (__isset.bannerTargetType)
            {
                hashcode = (hashcode * 397) + BannerTargetType.GetHashCode();
            }
            if (__isset.bannerTargetPath)
            {
                hashcode = (hashcode * 397) + BannerTargetPath.GetHashCode();
            }
            if (__isset.productList)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(ProductList_);
            }
            if (__isset.bannerLang)
            {
                hashcode = (hashcode * 397) + BannerLang.GetHashCode();
            }
        }
        return(hashcode);
    }
Пример #2
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("ProductList(");
        bool __first = true;

        if (__isset.hasNext)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("HasNext: ");
            HasNext.ToString(sb);
        }
        if (__isset.bannerSequence)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BannerSequence: ");
            BannerSequence.ToString(sb);
        }
        if (__isset.bannerTargetType)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BannerTargetType: ");
            BannerTargetType.ToString(sb);
        }
        if (BannerTargetPath != null && __isset.bannerTargetPath)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BannerTargetPath: ");
            BannerTargetPath.ToString(sb);
        }
        if (ProductList_ != null && __isset.productList)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ProductList_: ");
            ProductList_.ToString(sb);
        }
        if (BannerLang != null && __isset.bannerLang)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BannerLang: ");
            BannerLang.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }