Examveda

In LINQ, what does the DistinctBy operator do?

A. Sorts the elements of a sequence in ascending order based on a key

B. Filters a sequence based on a predicate

C. Returns distinct elements from a sequence based on a specified key selector

D. Projects each element of a sequence

Answer: Option C


Join The Discussion

Related Questions on LINQ (Language Integrated Query) in C Sharp