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

◆ Last< TSource >() [2/2]

static TSource System.Linq.Queryable.Last< TSource > ( this IQueryable< TSource > source,
Expression< Func< TSource, bool > > predicate )
inlinestatic

Definition at line 1031 of file Queryable.cs.

1032 {
1033 if (source == null)
1034 {
1035 throw Error.ArgumentNull("source");
1036 }
1037 if (predicate == null)
1038 {
1039 throw Error.ArgumentNull("predicate");
1040 }
1041 return source.Provider.Execute<TSource>(Expression.Call(null, CachedReflectionInfo.Last_TSource_2(typeof(TSource)), source.Expression, Expression.Quote(predicate)));
1042 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

References System.Linq.Error.ArgumentNull(), System.Linq.Expressions.Expression< TDelegate >.Call(), System.Linq.CachedReflectionInfo.Last_TSource_2(), System.Linq.predicate, System.Linq.Expressions.Expression< TDelegate >.Quote(), and System.Linq.source.