Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Zip< TFirst, TSecond, TResult >()

static IQueryable< TResult > System.Linq.Queryable.Zip< TFirst, TSecond, TResult > ( this IQueryable< TFirst > source1,
IEnumerable< TSecond > source2,
Expression< Func< TFirst, TSecond, TResult > > resultSelector )
inlinestatic

Definition at line 721 of file Queryable.cs.

722 {
723 if (source1 == null)
724 {
725 throw Error.ArgumentNull("source1");
726 }
727 if (source2 == null)
728 {
729 throw Error.ArgumentNull("source2");
730 }
731 if (resultSelector == null)
732 {
733 throw Error.ArgumentNull("resultSelector");
734 }
735 return source1.Provider.CreateQuery<TResult>(Expression.Call(null, CachedReflectionInfo.Zip_TFirst_TSecond_TResult_3(typeof(TFirst), typeof(TSecond), typeof(TResult)), source1.Expression, GetSourceExpression(source2), Expression.Quote(resultSelector)));
736 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

References System.Linq.Error.ArgumentNull(), System.Linq.Expressions.Expression< TDelegate >.Call(), System.Linq.Expressions.Expression< TDelegate >.Quote(), System.Linq.resultSelector, and System.Linq.CachedReflectionInfo.Zip_TFirst_TSecond_TResult_3().