Difference between IEnumerable and a List?

  • IEnumerable is an interface that provides an Enumerator used to iterate over a collection that implements the IEnumerable.
  • List is a concrete class that implements the IEnumerable interface for iteration and adds own set of methods for adding, removing and other operations on a list of items. It is a Generic type that can store a collection of any passed type.

What is the difference between IEnumerator and IEnumerable?

What is the difference between IList and List?

C# Concepts Posted May 14, 2021

You can now show your support. 😊

We use cookies to provide you with a great user experience, analyze traffic and serve targeted promotions.   Learn More   Accept