在.net Array.Join? [英] Array.Join in .Net?

查看:110
本文介绍了在.net Array.Join?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,这是我敢肯定,我已经做了几十次,但由于某种原因,我无法找到它。一个愚蠢的事情

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?

(这是NET 2.0的,我没有任何东西LINQ)

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

感谢您!

推荐答案

如果你正在处理字符串,然后的的string.join 可能是你在找什么。

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

这篇关于在.net Array.Join?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆