using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DigitalData.Core.Application { /// /// Provides extension methods for IEnumerable. /// public static class EnumerableExtensions { /// /// Concatenates the members of a collection, using the specified separator between each member. /// /// The type of the elements of the enumerable. /// The IEnumerable whose elements to concatenate. /// The string to use as a separator. Separator is included in the returned string only between elements of the collection. /// A string that consists of the elements in the collection delimited by the separator string. If the collection is empty, the method returns String.Empty. public static string Join(this IEnumerable enumerable, string separator = ". ") => string.Join(separator, enumerable); } }