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

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

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

Definition at line 162 of file Queryable.cs.

163 {
164 if (source == null)
165 {
166 throw Error.ArgumentNull("source");
167 }
168 if (collectionSelector == null)
169 {
170 throw Error.ArgumentNull("collectionSelector");
171 }
172 if (resultSelector == null)
173 {
174 throw Error.ArgumentNull("resultSelector");
175 }
176 return source.Provider.CreateQuery<TResult>(Expression.Call(null, CachedReflectionInfo.SelectMany_TSource_TCollection_TResult_3(typeof(TSource), typeof(TCollection), typeof(TResult)), source.Expression, Expression.Quote(collectionSelector), Expression.Quote(resultSelector)));
177 }
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_TSource_TCollection_TResult_3(), and System.Linq.source.