Last active
December 30, 2015 11:39
-
-
Save khellang/7824315 to your computer and use it in GitHub Desktop.
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
| // Before: | |
| public static class StringExtensions | |
| { | |
| public static string Join(this string separator, params string[] values) | |
| { | |
| return Join(separator, values.AsEnumerable()); | |
| } | |
| public static string Join(this string separator, IEnumerable<string> values) | |
| { | |
| return string.Join(separator, values); | |
| } | |
| } | |
| // After: | |
| public static class StringExtensions | |
| { | |
| public static string Join(this string separator, params IEnumerable<string> values) | |
| { | |
| return string.Join(separator, values); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment