System::Collections::Generic::IEnumerable::LINQ_GroupBy method

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)

See Also

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)

See Also

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

Groups the elements of a sequence.

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)
ParameterDescription
KeyThe type of the key returned by keyPredicate
ParameterTypeDescription
keyPredicateSystem::Func<T, Key>A function to extract the key for each element.

ReturnValue

An IEnumerable that contains a sequence of objects and a key

See Also

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

Groups the elements of a sequence.

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)
ParameterDescription
KeyThe type of the key returned by keyPredicate
ElementThe type of the element returned by elementSelector
ParameterTypeDescription
keyPredicateSystem::Func<T, Key>A function to extract the key for each element.
elementSelectorSystem::Func<T, Element>A function to extract value key for each element.

ReturnValue

An IEnumerable that contains a sequence of objects and a key

See Also