C# Select SelectMany 区别

string[] text = { "Today is 2018-06-06", "weather is sunny", "I am happy" };

var tokens = text.Select(s => s.Split(' '));
var tokens2 = text.SelectMany(s => s.Split(' '));

 

posted @ 2018-06-24 22:32  ~雨落忧伤~  阅读(210)  评论(0编辑  收藏  举报