Beispiel #1
0
        public static string Combine(params string[] sentences)
        {
            ParagraphBuilder builder = new ParagraphBuilder();

            builder.AppendSentences(sentences);
            return(builder.ToString());
        }
        public static string ToParagraphCase(this IEnumerable <string> array, bool appendBreaks = false)
        {
            var paragraph = new ParagraphBuilder();

            array.WithDescriptions().ForEach(s => {
                paragraph.AppendSentence(s.Item);
                if (!s.Description.HasFlag(EnumeratedItemDescription.Last))
                {
                    if (appendBreaks)
                    {
                        paragraph.AppendParagraphBreak();
                    }
                }
            });
            return(paragraph.ToString());
        }