Muhammad Imran Ansari
What is the difference between IEnumerable, ICollection, and IList?

What is the difference between IEnumerable, ICollection, and IList?

By Muhammad Imran Ansari in .NET on Jan 13 2025
  • Sangeetha S
    Jan, 2025 15

    IEnumerable: Allows iteration over a collection. Provides read-only access (no add/remove).
    ICollection: Extends IEnumerable to allow modification. Includes methods for adding, removing, and counting items.
    IList: Extends ICollection for indexed access. Allows accessing, inserting, and removing items by their index.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS