---
title: "Collection Interfaces in C#"  
description: "In C#, all collection types use some common interfaces. These common interfaces define the basic functionality for each collection class.    IEnumerab"  
author: "Anupam Mishra"  
published: 2016-01-01  
updated: 2018-03-13  
canonical: https://www.mindstick.com/blog/11004/collection-interfaces-in-c-sharp  
category: "c#"  
tags: ["c#", "collection"]  
reading_time: 1 minute  

---

# Collection Interfaces in C#

In C#, all [collection](https://www.mindstick.com/articles/1718/collections-in-java) types use some [common](https://www.mindstick.com/articles/23170/10-most-common-accounting-mistakes-of-small-business) [interfaces](https://www.mindstick.com/articles/12100/interfaces-in-java-real-life-example). These common interfaces [define](https://yourviews.mindstick.com/audio/1110/lifestyles-choices-that-define-our-lives) the [basic](https://www.mindstick.com/forum/161830/what-are-the-security-risks-of-using-basic-authentication) [functionality](https://www.mindstick.com/blog/136/using-watermark-functionality-in-textbox-by-jquery) for each collection class.

\

![Collection Interfaces in C#](https://www.mindstick.com/blogs/5cd09f17-b613-4a21-8088-66cfcd7facbf/images/d5793fe2-847a-4b91-8ab2-6630d564d616.png)\

IEnumerable interface acts as a base interface for all the collection classes.IEnumerable is further extended by ICollection. ICollection is also further

extended by IDictionary.

**IEnumerable Interface:** IEnumerable interface provides an enumerator

which supports a simple iteration over a non-generic collections.

**ICollection Interface:** ICollection interface defines size, enumerators and

synchronization methods for all non-generic collections.

**IDictionary Interfaces:** IDictionary interface represents a non-generic

collection of key/value pair.

\

**IList Interface:** IList interface represents a non-generic collection of objects

that can be individually accessed by index.

\

All collection interfaces are not implemented by all the collection

classes. It’s depends on the collection nature. For example, IDictionary

interface will be implemented by only those collection classes which

supports key/value pairs like Hashtable and SortedList etc.

---

Original Source: https://www.mindstick.com/blog/11004/collection-interfaces-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
