LINQ_Zip()
Contents
[
Hide
]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
| Parameter | Description |
|---|---|
| TSecond | The type of the elements of the second input sequence. |
| TResult | The type of the elements of the result sequence. |
Arguments
| Parameter | Type | Description |
|---|---|---|
| second | SharedPtr<IEnumerable<TSecond>> | The second sequence to merge. |
| resultSelector | const 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
| Exception | Description |
|---|---|
| System::ArgumentNullException | if 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
- Typedef SharedPtr
- Class IEnumerable
- Class Func
- Namespace System::Collections::Generic
- Library Aspose.Slides