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<Source, Key>, System::Func<Source, Element>) method

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

См. также

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 содержащий последовательность объектов и ключ

См. также

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

Группирует элементы последовательности.

template<typename Key,typename Element> System::SharedPtr<IEnumerable<System::SharedPtr<System::Linq::IGrouping<Key, Element>>>> System::Collections::Generic::IEnumerable<T>::LINQ_GroupBy(System::Func<T, Key> keyPredicate, System::Func<T, Element> elementSelector)
ПараметрОписание
КлючТип ключа, возвращаемого keyPredicate
ElementТип элемента, возвращаемого elementSelector
ПараметрТипОписание
keyPredicateSystem::Func<T, Key>Функция для извлечения ключа из каждого элемента.
elementSelectorSystem::Func<T, Element>Функция для извлечения значения ключа из каждого элемента.

ReturnValue

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

См. также