var strList = new List<string>() { "aaa", "bbb", "ccc" };
var str1 = strList.Aggregate((a, b) => a + ", " + b);
=> result : aaa,bbb
var str2 = strList.Aggregate((a, b) => "'" + a + "', '" + b + "'");
=> result : 'aaa','bbb' …
'C# > visualstudio' 카테고리의 다른 글
useful shortcut. (0) | 2019.01.24 |
---|---|
What kind of shortcut in VisualStudio 2017 and how to change shortcut. (0) | 2019.01.23 |