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<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