7. Filtering Flashcards
1
Q
What does the where
clause do?
A
Filters a sequence based on a predicate function that’s applied to each element in the sequence.
2
Q
What does the OfType
extension method do and what parameters does it take?
A
Filters a sequence based on the type of the items in it.
It takes a type parameter inside an angled bracket.