arraysjoin.net-2.0

Array.Join in .Net?


Ok, this is a dumb thing that I'm sure I've done dozens of times but for some reason I can't find it.

I have an array... And want to get a string with the contents of that array separated by a delimited...

Where is the .Join() method that I can't find?

(This is .Net 2.0, I don't have any LINQ stuff.)


Solution

  • If you're working with strings, then String.Join is probably what you're looking for.