Is Array an Ienumerable C#
C# Language Arrays Arrays as Ienumerable Instances This Means That They Can Be Treated as Generic Enumerable Types and Passed in to a Variety of Methods...
C# Language Arrays Arrays as IEnumerable<> instances This means that they can be treated as generic enumerable types and passed in to a variety of methods without needing to first convert them to a non-array form.
Is a List An IEnumerable?
List implements IEnumerable, but represents the entire collection in memory. LINQ expressions return an enumeration, and by default the expression executes when you iterate through it using a foreach, but you can force it to iterate sooner using .
Must Read
What is the difference between an IEnumerable and a List?
One important difference between IEnumerable and List (besides one being an interface and the other being a concrete class) is that IEnumerable is read-only and List is not. So if you need the ability to make permanent changes of any kind to your collection (add & remove), you’ll need List.