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?

  • 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?

Sriram Mannava
Sriram Mannava

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity.

Leave a Reply

Your email address will not be published. Required fields are marked *