System::Collections::Generic::IEnumerable::LINQ_GroupBy 方法

IEnumerable::LINQ_GroupBy(System::Func<Source, Key>) method

template<typename Key> SharedPtr<IEnumerable<SharedPtr<System::Linq::IGrouping<Key, Source>>>> System::Collections::Generic::IEnumerable<T>::LINQ_GroupBy(System::Func<Source, Key> keyPredicate)

另见

IEnumerable::LINQ_GroupBy(System::Func<T, Key>) method

对序列的元素进行分组。

template<typename Key> System::SharedPtr<IEnumerable<System::SharedPtr<System::Linq::IGrouping<Key, T>>>> System::Collections::Generic::IEnumerable<T>::LINQ_GroupBy(System::Func<T, Key> keyPredicate)
Parameter描述
keyPredicate 返回的键的类型
ParameterType描述
keyPredicateSystem::Func<T, Key>一个用于提取每个元素键的函数。

ReturnValue

一个包含对象序列和键的 IEnumerable

另见