using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HueUWP { public static class Extensions { public static string ToDelimitedString(this IEnumerable source, Func func) { return ToDelimitedString(source, ", ", func); } public static string ToDelimitedString(this IEnumerable source, string delimiter, Func func) { return String.Join(delimiter, source.Select(func).ToArray()); } } }