dotnet / dotnet/dotnet-api-docs

Needs clarification for the case when enumerable is empty

Open
#1,716 0 comments 1 reaction 0 assignees View on GitHub
area-System.Linq dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

It's not clear from the doc what would be a return of Any with predicate if the queried enumerable is empty (e.g. empty List)

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 028e83ab-7469-5a49-eb1e-fc733696bea3
* Version Independent ID: cbb14d50-ba7f-7f29-9535-43b936744bc4
* Content: [Enumerable.Any Method (System.Linq)](https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.any?view=netframework-4.7.2#System_Linq_Enumerable_Any__1_System_Collections_Generic_IEnumerable___0__System_Func___0_System_Boolean__)
* Content Source: [xml/System.Linq/Enumerable.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Linq/Enumerable.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.