© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
6mo ago
•
19 replies
AceOfAces
IEnumerable and loops
A bit of a rapid
-fire question
: if I only need to iterate on a collection once
, is it OK to use IEnumerable
? For example
, using
Directory.EnumerateFiles(path)
Directory.EnumerateFiles(path)
to filter out the files in separate lists
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
✅ For loops, while loops, and TryParses
C
C# / help
13mo ago
❔ Interfaces, IEnumerator and IEnumerable
C
C# / help
3y ago
❔ IEnumerable and dependency injection
C
C# / help
4y ago
SequenceEqual with IEnumerable and Span?
C
C# / help
3mo ago