我有一个字符串列表,我想将它们转储为带有分号分隔符的字符串。
IEnumerable<string> foo = from f in fooList
where f.property == "bar"
select f.title;
我现在要输出这个:
title1;title2;title3;title4
我该怎么做?
最佳答案
关于c# - 如何使用 LINQ 将一组字符串缩减为一个分隔字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9133031/