/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }