Skip to content

Instantly share code, notes, and snippets.

@khellang
Last active December 30, 2015 11:39
Show Gist options
  • Select an option

  • Save khellang/7824315 to your computer and use it in GitHub Desktop.

Select an option

Save khellang/7824315 to your computer and use it in GitHub Desktop.
// 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