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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly