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)
ПараметрОписание
КлючТип ключа, возвращаемого функцией keyPredicate
ПараметрТипОписание
keyPredicateSystem::Func<T, Key>Функция для извлечения ключа из каждого элемента.

ReturnValue

Объект IEnumerable, содержащий последовательность объектов и ключ.

См. также