谁能解释这个代码示例在做什么?我不太明白字符串是如何分组的。它是否以每个单词的第一个字母并以某种方式对它们进行分组?
// Create a data source.
string[] words = { "apples", "blueberries", "oranges", "bananas", "apricots" };
// Create the query.
var wordGroups1 =
from w in words
group w by w[0] into fruitGroup
where fruitGroup.Count() >= 2
select new { FirstLetter = fruitGroup.Key, Words = fruitGroup.Count() };