C#C
C#8mo ago
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?
Was this page helpful?