Beispiel #1
0
        public static StringBuilder AppendOverlays(this StringBuilder stringBuilder, IEnumerable<XpoUrlOverlay> urlOverlays)
        {
            var xpoUrlOverlays = urlOverlays as XpoUrlOverlay[] ?? urlOverlays.ToArray();

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

            var overlayKeys = new OverlayKeysCollection();

            foreach (var overlayKey in overlayKeys.Keys)
            {
                var keyValue = overlayKey.GetValues(xpoUrlOverlays);

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

            return stringBuilder;
        }
        public static StringBuilder AppendOverlays(this StringBuilder stringBuilder, IEnumerable <XpoUrlOverlay> urlOverlays)
        {
            var xpoUrlOverlays = urlOverlays as XpoUrlOverlay[] ?? urlOverlays.ToArray();

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

            var overlayKeys = new OverlayKeysCollection();

            foreach (var overlayKey in overlayKeys.Keys)
            {
                var keyValue = overlayKey.GetValues(xpoUrlOverlays);

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

            return(stringBuilder);
        }