Created
March 4, 2015 09:08
-
-
Save shaybensasson/6fb80c2cd93bff03ba89 to your computer and use it in GitHub Desktop.
AggregateToString
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| public static class LinqExtensions | |
| { | |
| public static string AggregateToString<T>(this IEnumerable<T> input, string seperator) | |
| { | |
| var ar = input.Select(i => i.ToString()).ToArray(); | |
| return string.Join(seperator, ar); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment