LINQ_OfType()

IEnumerable::LINQ_OfType() method

Filters the elements of the sequence based on the specified type.

template<typename ResultType> SharedPtr<IEnumerable<ResultType>> System::Collections::Generic::IEnumerable<T>::LINQ_OfType()

Template parameters

ParameterDescription
ResultTypeThe type to filter the elements of the sequence.

Return Value

An IEnumerable that contains elements from the sequence of the ResultType.

IEnumerable::LINQ_OfType() method

template<typename Result> SharedPtr<IEnumerable<Result>> System::Collections::Generic::IEnumerable<T>::LINQ_OfType()

See Also