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

◆ SelectMany< TSource, TCollection, TResult >() [2/2]

static IQueryable< TResult > System.Linq.Queryable.SelectMany< TSource, TCollection, TResult > ( this IQueryable< TSource > source,
Expression< Func< TSource, int, IEnumerable< TCollection > > > collectionSelector,
Expression< Func< TSource, TCollection, TResult > > resultSelector )
inlinestatic

Definition at line 144 of file Queryable.cs.

145 {
146 if (source == null)
147 {
148 throw Error.ArgumentNull("source");
149 }
150 if (collectionSelector == null)
151 {
152 throw Error.ArgumentNull("collectionSelector");
153 }
154 if (resultSelector == null)
155 {
156 throw Error.ArgumentNull("resultSelector");
157 }
158 return source.Provider.CreateQuery<TResult>(Expression.Call(null, CachedReflectionInfo.SelectMany_Index_TSource_TCollection_TResult_3(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, Expression.Quote(collectionSelector), Expression.Quote(resultSelector)));
159 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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