Array.Join 在 .Net 中? [英] Array.Join in .Net?
本文介绍了Array.Join 在 .Net 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好吧,这是一件愚蠢的事情,我敢肯定我已经做过几十次了,但由于某种原因我找不到它.
我有一个数组...并且想要得到一个字符串,该字符串的内容由一个分隔符分隔...
我找不到的 .Join() 方法在哪里?
(这是 .Net 2.0,我没有任何 LINQ 的东西)
谢谢!
解决方案
如果您正在处理字符串,那么 String.Join 可能就是你要找的.p>
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)
Thank you!
解决方案
If you're working with strings, then String.Join is probably what you're looking for.
这篇关于Array.Join 在 .Net 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文