[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.ZipEx

ZipEx Method

ZipEx<T1, T2, TR>(IEnumerable<T1>, IEnumerable<T2>, Func<T1, T2, TR>)

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

Declaration
public static IEnumerable<TR> ZipEx<T1, T2, TR>(this IEnumerable<T1> first, IEnumerable<T2> second, Func<T1, T2, TR> selector)
Parameters
Type Name Description
IEnumerable<T1> first

The first sequence to merge

IEnumerable<T2> second

The second sequence to merge

Func<T1, T2, TR> selector

A function that specifies how to merge the elements from the two sequences

Returns
Type Description
IEnumerable<TR>

An IEnumerable<T> that contains merged elements of two input sequences

Type Parameters
Name Description
T1

The type of the elements of the first input sequence

T2

The type of the elements of the second input sequence

TR

The type of the elements of the result sequence

ZipEx<T1, T2, TR>(IEnumerable<T1>, IEnumerable<T2>, Func<int, T1, T2, TR>)

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

Declaration
public static IEnumerable<TR> ZipEx<T1, T2, TR>(this IEnumerable<T1> first, IEnumerable<T2> second, Func<int, T1, T2, TR> selector)
Parameters
Type Name Description
IEnumerable<T1> first

The first sequence to merge

IEnumerable<T2> second

The second sequence to merge

Func<int, T1, T2, TR> selector

A function that specifies how to merge the elements from the two sequences

Returns
Type Description
IEnumerable<TR>

An IEnumerable<T> that contains merged elements of two input sequences

Type Parameters
Name Description
T1

The type of the elements of the first input sequence

T2

The type of the elements of the second input sequence

TR

The type of the elements of the result sequence