Hi
String.Join allows seperator as explicit parameter and string.Concat doesn't have such parameter.
string.Join(seperator, stringarray[]);
string.concat(stringarray[])
With .NET 4.0, String.Join() uses StringBuilder class internally so it is more efficient.
Whereas String.Concat() uses basic concatenation of String using "+" which is of course not an efficient approach as String is immutable.
as compared String.Join() in .NET 2.0 framework where its implementation was different. But with .NET 4.0, String.Join() is using StringBuilder() internally so its like easy wrapper on top of StringBuilder() for string concatenation.
Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/
Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator