Exemplo n.º 1
0
        public static StringBuilder AppendTexts(this StringBuilder stringBuilder, IEnumerable<XpoUrlObject> xpoUrlTexts)
        {
            var xpoUrlObjects = xpoUrlTexts as XpoUrlObject[] ?? xpoUrlTexts.ToArray();

            if (!xpoUrlObjects.Any())
                return stringBuilder;

            var textKeys = new TextKeysCollection();

            foreach (var textKey in textKeys.Keys)
            {
                var keyValue = textKey.GetValues(xpoUrlObjects);

                if (!string.IsNullOrEmpty(keyValue))
                {
                    stringBuilder.Append("&");
                    stringBuilder.Append(keyValue);
                }
            }

            return stringBuilder;
        }
Exemplo n.º 2
0
        public static StringBuilder AppendTexts(this StringBuilder stringBuilder, IEnumerable <XpoUrlObject> xpoUrlTexts)
        {
            var xpoUrlObjects = xpoUrlTexts as XpoUrlObject[] ?? xpoUrlTexts.ToArray();

            if (!xpoUrlObjects.Any())
            {
                return(stringBuilder);
            }

            var textKeys = new TextKeysCollection();

            foreach (var textKey in textKeys.Keys)
            {
                var keyValue = textKey.GetValues(xpoUrlObjects);

                if (!string.IsNullOrEmpty(keyValue))
                {
                    stringBuilder.Append("&");
                    stringBuilder.Append(keyValue);
                }
            }

            return(stringBuilder);
        }