Skip to content

Run the selector on Skipped items. #19768

Description

@VSadov

It seems that while we can do certain optimization based on the known size of the resulting sequence after Skip is applied, but not running selectors on skipped items during enumeration is observable and could be unexpected.

The following queries seem to have subtly different meaning -
list.Select(s).Skip(10)
list.Skip(10).Select(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Linqdesign-discussionOngoing discussion about design without consensusenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions