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

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

static IEnumerable< TSource > System.Linq.Enumerable.DistinctBy< TSource, TKey > ( this IEnumerable< TSource > source,
Func< TSource, TKey > keySelector,
IEqualityComparer< TKey >? comparer )
inlinestatic

Definition at line 4581 of file Enumerable.cs.

4582 {
4583 if (source == null)
4584 {
4585 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
4586 }
4587 if (keySelector == null)
4588 {
4589 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.keySelector);
4590 }
4592 }

References System.comparer, System.Linq.keySelector, System.Linq.source, and System.Linq.ThrowHelper.ThrowArgumentNullException().