Where Filters a sequence of values โโbased on a predicate. So, in the first example, you select items from your list, where the function n.Id == id
is true.
Select Projects each element of the sequence into a new form, so in your second example, you get a list of logical elements that are the result of the function n.Id == id
for each element.
source share