System::Collections::Generic::IEnumerable::LINQ_GroupBy metodo

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)

Vedi anche

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)

Vedi anche

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

Raggruppa gli elementi di una sequenza.

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)
ParametroDescrizione
ChiaveIl tipo della chiave restituita da keyPredicate
ParametroTipoDescrizione
keyPredicateSystem::Func<T, Key>Una funzione per estrarre la chiave per ogni elemento.

ReturnValue

Un IEnumerable che contiene una sequenza di oggetti e una chiave

Vedi anche

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

Raggruppa gli elementi di una sequenza.

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)
ParametroDescrizione
ChiaveIl tipo della chiave restituita da keyPredicate
ElementIl tipo dell’elemento restituito da elementSelector
ParametroTipoDescrizione
keyPredicateSystem::Func<T, Key>Una funzione per estrarre la chiave per ogni elemento.
elementSelectorSystem::Func<T, Element>Una funzione per estrarre il valore chiave per ogni elemento.

ReturnValue

Un IEnumerable che contiene una sequenza di oggetti e una chiave

Vedi anche