Exemple #1
0
        /// <summary>
        /// Create and initialize a queue composer from the given inputs
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="items"></param>
        /// <param name="separator"></param>
        /// <returns></returns>
        public static QueueComposer ComposeToQueue <T>(this IEnumerable <T> items, string separator)
        {
            var composer = new QueueComposer()
            {
                Separator = separator
            };

            return(composer.EnqueueRange(items));
        }
Exemple #2
0
        /// <summary>
        /// Create and initialize a queue 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 QueueComposer ComposeToQueue <T>(this IEnumerable <T> items, string separator, string finalPrefix, string finalSuffix)
        {
            var composer = new QueueComposer()
            {
                Separator   = separator,
                FinalPrefix = finalPrefix,
                FinalSuffix = finalSuffix
            };

            return(composer.EnqueueRange(items));
        }
Exemple #3
0
        /// <summary>
        /// Create and initialize a queue composer from the given inputs
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="items"></param>
        /// <returns></returns>
        public static QueueComposer ComposeToQueue <T>(this IEnumerable <T> items)
        {
            var composer = new QueueComposer();

            return(composer.EnqueueRange(items));
        }
Exemple #4
0
        /// <summary>
        /// Create and initialize a queue composer from the given inputs
        /// </summary>
        /// <param name="items"></param>
        /// <returns></returns>
        public static QueueComposer ComposeToQueue(this IEnumerable <StructuredTextItem> items)
        {
            var composer = new QueueComposer();

            return(composer.EnqueueRange(items));
        }