Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


#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