Пример #1
0
        public static string ConcatStringsWithDelimiter(this IEnumerable <string> source, string delimiter)
        {
            StringBuilder stringBuilder = new StringBuilder();

            foreach (string current in source.InsertDelimiter(delimiter))
            {
                stringBuilder.Append(current);
            }
            return(stringBuilder.ToString());
        }