标签:join coff UNC esc end orm key 直接 字符
List<Car> cars = //whatever;
string concat = String.Join(",", cars.Select(c => c.Name).ToArray());
string concat = cars.Select(c => c.Name).Aggregate(new StringBuilder(), (sb, current) =>
{
return sb.Length == 0 ? sb.Append(current) : sb.AppendFormat(",{0}", current);
}).ToString();
标签:join coff UNC esc end orm key 直接 字符
原文地址:https://www.cnblogs.com/itclw/p/11868371.html