Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualNypyren

Posted 04 December 2012 - 05:27 PM

Simplified syntax for string.Join (C# knows how to do generic type inference):

string combinedString = string.Join("\n", array);

It should be noted that the latest version of .Net includes both a string.Join which takes an array AND one which works on IEnumerable<T>.

#1Nypyren

Posted 04 December 2012 - 05:26 PM

Simplified syntax for string.Join:

string combinedString = string.Join("\n", array);

It should be noted that the latest version of .Net includes both a string.Join which takes an array AND one which works on IEnumerable<T>.

PARTNERS