C#C
C#5mo ago
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) to filter out the files in separate lists.
Was this page helpful?