© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
Mastalt

❔ IEnumerable is empty for some reason

I want to add a filter to check if an IEnumerable is empty so i'm using IEnumerable.Any(), but my IEnumerable afterward is empty and i can't do anything with it. If i remove the check, the data is suddenly there.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

query is slow for some reason
C#CC# / help
3y ago
ImageSharp slow asf for some reason
C#CC# / help
13mo ago
One IEnumerable with 1 item mysteriously becomes empty after I query a second IEnumerable
C#CC# / help
10mo ago
✅ What is IEnumerable<out T> ?
C#CC# / help
3y ago