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

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

static IQueryable< TSource > System.Linq.Queryable.DistinctBy< TSource, TKey > ( this IQueryable< TSource > source,
Expression< Func< TSource, TKey > > keySelector )
inlinestatic

Definition at line 655 of file Queryable.cs.

656 {
657 if (source == null)
658 {
659 throw Error.ArgumentNull("source");
660 }
661 if (keySelector == null)
662 {
663 throw Error.ArgumentNull("keySelector");
664 }
665 return source.Provider.CreateQuery<TSource>(Expression.Call(null, CachedReflectionInfo.DistinctBy_TSource_TKey_2(typeof(TSource), typeof(TKey)), source.Expression, Expression.Quote(keySelector)));
666 }
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Quote(Expression expression)

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