/// <summary> /// Create and initialize a list composer from the given inputs /// </summary> /// <typeparam name="T"></typeparam> /// <param name="items"></param> /// <param name="separator"></param> /// <returns></returns> public static ListTextComposer ComposeToList <T>(this IEnumerable <T> items, string separator) { var composer = new ListTextComposer() { Separator = separator }; return(composer.AddRange(items)); }
/// <summary> /// Create and initialize a list 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 ListTextComposer ComposeToList <T>(this IEnumerable <T> items, string separator, string finalPrefix, string finalSuffix) { var composer = new ListTextComposer() { Separator = separator, FinalPrefix = finalPrefix, FinalSuffix = finalSuffix }; return(composer.AddRange(items)); }
/// <summary> /// Create and initialize a list composer from the given inputs /// </summary> /// <typeparam name="T"></typeparam> /// <param name="items"></param> /// <returns></returns> public static ListTextComposer ComposeToList <T>(this IEnumerable <T> items) { var composer = new ListTextComposer(); return(composer.AddRange(items)); }
/// <summary> /// Create and initialize a list composer from the given inputs /// </summary> /// <param name="items"></param> /// <returns></returns> public static ListTextComposer ComposeToList(this IEnumerable <StructuredTextItem> items) { var composer = new ListTextComposer(); return(composer.AddRange(items)); }