You are previewing LINQ in Action.

LINQ in Action

Cover of LINQ in Action by Fabrice Marguerie... Published by Manning Publications
O'Reilly logo

Appendix. The standard query operators

Filtering

Operator name

Description

OfType Selects values, depending on their ability to be cast to a specified type.
Where Selects values, depending on a predicate function.

Projection

Operator name

Description

Select Selects values, depending on a selector function.
SelectMany Selects values, depending on a selector function, and combines resulting sequences into one sequence. SelectMany performs a one-to-many element projection over a sequence. It differs from Select in that the selector function is expected to return a sequence that is then expanded.

Partitioning

Operator name

Description

Skip Skips n elements from a sequence.
SkipWhile Skips elements based on a predicate function until ...

The best content for your career. Discover unlimited learning on demand for around $1/day.