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

◆ UnionBy< TSource, TKey >() [1/2]

static IQueryable< TSource > System.Linq.Queryable.UnionBy< TSource, TKey > ( this IQueryable< TSource > source1,
IEnumerable< TSource > source2,
Expression< Func< TSource, TKey > > keySelector )
inlinestatic

Definition at line 785 of file Queryable.cs.

786 {
787 if (source1 == null)
788 {
789 throw Error.ArgumentNull("source1");
790 }
791 if (source2 == null)
792 {
793 throw Error.ArgumentNull("source2");
794 }
795 if (keySelector == null)
796 {
797 throw Error.ArgumentNull("keySelector");
798 }
799 return source1.Provider.CreateQuery<TSource>(Expression.Call(null, CachedReflectionInfo.UnionBy_TSource_TKey_3(typeof(TSource), typeof(TKey)), source1.Expression, GetSourceExpression(source2), Expression.Quote(keySelector)));
800 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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