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)
另见
- Typedef SharedPtr
- Class IEnumerable
- Class IGrouping
- Class Func
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
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 返回的键的类型 |
| Parameter | Type | 描述 |
|---|---|---|
| keyPredicate | System::Func<T, Key> | 一个用于提取每个元素键的函数。 |
ReturnValue
一个包含对象序列和键的 IEnumerable。
另见
- Typedef SharedPtr
- Class IEnumerable
- Class IGrouping
- Class Func
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Page for C++