Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Returning empty IEnumerable should include skipping the same number of elements source has, not just less than it. #11155

Copy link
Copy link
Open
@afpirimoglu

Description

@afpirimoglu
Issue body actions

Type of issue

Typo

Description

"If source contains fewer than count elements, an empty IEnumerable is returned." should be changed to "If source contains fewer than or equal to count elements, an empty IEnumerable is returned". Because if source had count number of elements and count of them are skipped, the remaining is empty IEnumerable.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.skip?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Linq/Enumerable.xml

Document Version Independent Id

a67e52ea-8921-5d7f-d316-eecab80668af

Platform Id

7e01664c-988a-740a-0cea-13ed236ce98b

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.