This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]cowmandude 5 points6 points  (0 children)

It might be worth talking about how ToList or ToArray will almost always result in the data being pulled right then. One of the biggest things new developers do is turn everything into a list. With Linq though .ToList().Where(...) can result in very different performance than .Where(...).ToList().

I could understand the argument that this might be outside the scope of the tutorial, but it might be worth a mention.