LINQ_Select()

IEnumerable::LINQ_Select(const Func<T, ResultType>&) method

Transforms elements of a sequence.

template<typename ResultType> SharedPtr<IEnumerable<ResultType>> System::Collections::Generic::IEnumerable<T>::LINQ_Select(const Func<T, ResultType> &selector)

Template parameters

ParameterDescription
ResultTypeThe type of the value returned by the selector.

Arguments

ParameterTypeDescription
selectorconst Func<T, ResultType>&A transform function.

Return Value

An IEnumerable that contains elements returned by the selector function.

IEnumerable::LINQ_Select(const Func<T, int32_t, ResultType>&) method

Transforms each element of a sequence into a new form by incorporating the element’s index.

template<typename ResultType> SharedPtr<IEnumerable<ResultType>> System::Collections::Generic::IEnumerable<T>::LINQ_Select(const Func<T, int32_t, ResultType> &selector)

Template parameters

ParameterDescription
ResultTypeThe type of the value returned by the selector.

Arguments

ParameterTypeDescription
selectorconst Func<T, int32_t, ResultType>&A transform function.

Return Value

An IEnumerable that contains elements returned by the selector function.

IEnumerable::LINQ_Select(const Func<Source, Result>&) method

template<typename Result> SharedPtr<IEnumerable<Result>> System::Collections::Generic::IEnumerable<T>::LINQ_Select(const Func<Source, Result> &selector)

IEnumerable::LINQ_Select(const Func<Source, int32_t, Result>&) method

template<typename Result> SharedPtr<IEnumerable<Result>> System::Collections::Generic::IEnumerable<T>::LINQ_Select(const Func<Source, int32_t, Result> &selector)

See Also