LINQ_Zip()

IEnumerable::LINQ_Zip(SharedPtr<IEnumerable<TSecond>>, const Func<T, TSecond, TResult>&) method

Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.

template<typename TSecond,typename TResult> SharedPtr<IEnumerable<TResult>> System::Collections::Generic::IEnumerable<T>::LINQ_Zip(SharedPtr<IEnumerable<TSecond>> second, const Func<T, TSecond, TResult> &resultSelector)

Template parameters

ParameterDescription
TSecondThe type of the elements of the second input sequence.
TResultThe type of the elements of the result sequence.

Arguments

ParameterTypeDescription
secondSharedPtr<IEnumerable<TSecond>>The second sequence to merge.
resultSelectorconst Func<T, TSecond, TResult>&A function that specifies how to merge the elements from the two sequences.

Return Value

An System::Collections::Generic::IEnumerable that contains merged elements of two input sequences.

Exceptions

ExceptionDescription
System::ArgumentNullExceptionif second or resultSelector is nullptr.

IEnumerable::LINQ_Zip(SharedPtr<IEnumerable<TSecond>>, const Func<TFirst, TSecond, TResult>&) method

template<typename TSecond,typename TResult> SharedPtr<IEnumerable<TResult>> System::Collections::Generic::IEnumerable<T>::LINQ_Zip(SharedPtr<IEnumerable<TSecond>> second, const Func<TFirst, TSecond, TResult> &resultSelector)

See Also