예제 #1
0
    public override string ToString()
    {
        StringBuilder __sb    = new StringBuilder("SearchItemUnion(");
        bool          __first = true;

        if (CategoryItem != null && __isset.categoryItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("CategoryItem: ");
            __sb.Append(CategoryItem == null ? "<null>" : CategoryItem.ToString());
        }
        if (SpotItem != null && __isset.spotItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("SpotItem: ");
            __sb.Append(SpotItem);
        }
        if (ProductItem != null && __isset.productItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("ProductItem: ");
            __sb.Append(ProductItem == null ? "<null>" : ProductItem.ToString());
        }
        if (ServiceItem != null && __isset.serviceItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("ServiceItem: ");
            __sb.Append(ServiceItem == null ? "<null>" : ServiceItem.ToString());
        }
        if (YellowpageItem != null && __isset.yellowpageItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("YellowpageItem: ");
            __sb.Append(YellowpageItem == null ? "<null>" : YellowpageItem.ToString());
        }
        if (OaItem != null && __isset.oaItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("OaItem: ");
            __sb.Append(OaItem == null ? "<null>" : OaItem.ToString());
        }
        if (GeoAddressItem != null && __isset.geoAddressItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("GeoAddressItem: ");
            __sb.Append(GeoAddressItem == null ? "<null>" : GeoAddressItem.ToString());
        }
        if (ShortcutItem != null && __isset.shortcutItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("ShortcutItem: ");
            __sb.Append(ShortcutItem == null ? "<null>" : ShortcutItem.ToString());
        }
        if (SquareItem != null && __isset.squareItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("SquareItem: ");
            __sb.Append(SquareItem);
        }
        if (SquareCategoryItem != null && __isset.squareCategoryItem)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("SquareCategoryItem: ");
            __sb.Append(SquareCategoryItem == null ? "<null>" : SquareCategoryItem.ToString());
        }
        __sb.Append(")");
        return(__sb.ToString());
    }