Queryable.GroupBy<TSource, TKey> 方法 (IQueryable<TSource>, Expression<Func<TSource, TKey>>) 转
摘要:根据指定的键选择器函数对序列中的元素进行分组。命名空间:System.Linq程序集:System.Core(在 System.Core.dll 中)语法C#C++F#VBpublic static IQueryable> GroupBy( this IQueryable source, Expression> keySelector)类型参数TSourcesource中的元素的类型。TKey由keySelector表示的函数返回的键类型。参数source类型:System.Linq.IQueryable要对其元素进行分组的IQueryable。keySelector类型:Syst
阅读全文