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

            return(composer.Append(items));
        }
示例#2
0
        /// <summary>
        /// Create and initialize a sequence 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 SequenceComposer ComposeToSequence <T>(this IEnumerable <T> items, string separator, string finalPrefix, string finalSuffix)
        {
            var composer = new SequenceComposer()
            {
                Separator   = separator,
                FinalPrefix = finalPrefix,
                FinalSuffix = finalSuffix
            };

            return(composer.Append(items));
        }
示例#3
0
        /// <summary>
        /// Create and initialize a sequence composer from the given inputs
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="items"></param>
        /// <returns></returns>
        public static SequenceComposer ComposeToSequence <T>(this IEnumerable <T> items)
        {
            var composer = new SequenceComposer();

            return(composer.Append(items));
        }
示例#4
0
        /// <summary>
        /// Create and initialize a sequence composer from the given inputs
        /// </summary>
        /// <param name="items"></param>
        /// <returns></returns>
        public static SequenceComposer ComposeToSequence(this IEnumerable <StructuredTextItem> items)
        {
            var composer = new SequenceComposer();

            return(composer.Append(items));
        }