Ejemplo n.º 1
0
        /// <summary>
        /// Create and initialize a stack composer from the given inputs
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="items"></param>
        /// <param name="separator"></param>
        /// <returns></returns>
        public static StackComposer ComposeToStack <T>(this IEnumerable <T> items, string separator)
        {
            var composer = new StackComposer()
            {
                Separator = separator
            };

            return(composer.PushRange(items));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Create and initialize a stack composer from the given inputs
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="items"></param>
        /// <param name="separator"></param>
        /// <param name="finalPrefix"></param>
        /// <param name="finalSuffix"></param>
        /// <returns></returns>
        public static StackComposer ComposeToStack <T>(this IEnumerable <T> items, string separator, string finalPrefix, string finalSuffix)
        {
            var composer = new StackComposer()
            {
                Separator   = separator,
                FinalPrefix = finalPrefix,
                FinalSuffix = finalSuffix
            };

            return(composer.PushRange(items));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Create and initialize a stack composer from the given inputs
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="items"></param>
        /// <returns></returns>
        public static StackComposer ComposeToStack <T>(this IEnumerable <T> items)
        {
            var composer = new StackComposer();

            return(composer.PushRange(items));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Create and initialize a stack composer from the given inputs
        /// </summary>
        /// <param name="items"></param>
        /// <returns></returns>
        public static StackComposer ComposeToStack(this IEnumerable <StructuredTextItem> items)
        {
            var composer = new StackComposer();

            return(composer.PushRange(items));
        }