© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•10mo ago•
4 replies
Core

✅ IEnumerable vs IReadOnlyCollection

Hello,
I have a scenario where I'm not sure which one should be used. The collection is only used internally, and only read operations are performed on it. Iteration on the collection happens once per method call.
Which one is more appropriate in this case?
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

IEnumerable<Author>
C#CC# / help
3mo ago
IEnumerable and loops
C#CC# / help
6mo ago