C#List集快速拼接一个字符串
原创List list = new List();
list.Add("拼");
list.Add("接");
//Join方法的第一个参数为分割符
string str = string.Join("",list.ToArray());
//第一个参数为"",str的值就为"拼接"
//第一个参数为"——",str的值就为"拼——接"
简单实用的一个自带方法,一行代码搞定,for或foreach在它面前都比较臃肿了,哈哈哈。
版权声明
所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除
相关文章
最新文章
- 0.05ms 往返:localhost 为什么不能直接当网站? 7小时前
- Fornax's Guide to Fast Ethernet 7小时前
- Possibly leaked NSA Cyberattack tool behind attacks (2017) 8小时前
- Steve Wozniak on Writing Apple Integer Basic 8小时前
- PayByPhone is stealing $50M/year from their users 8小时前
- Grand Theft Auto 6: A Landmark Achievement That Redefines a Console Generation 8小时前
- Research Acceleration: The Jagged Frontier 9小时前
- Google Embraces Geothermal Technology to Vaporize Rock for Clean Power 10小时前
- Microsoft's Agent Framework PyPI package compromised to steal credentials 11小时前
- Nvidia's Seven Billionaires Have Lost a Third of Their Wealth 11小时前
itfan123

