Using iCollections in C#
Collections are shaded windows on your desktop that organize your icons, files and folders. You can label, re-size, highlight or move collections around however you like. Collections also integrate with macOS and automatically launch when your system starts.
You can view, create and share up to 5,000 assets in a personal collection. A personal collection can be made global if you have permission to do so. A full list of global collections displays on the Collections page if you have the Administrate Global Collections permission.
The collections framework provides useful data structures and algorithms for storing and manipulating sets of objects. This reduces programming effort by providing high-level abstractions that eliminate the need for low-level plumbing code and help you focus on your application's functionality.
Common collection types include:
List - represents a collection of ordered elements or objects in a sorted form. It is a linear data structure that follows the LIFO (Last In, First Out) pattern for accessing the elements in a collection. Various list classes are available in C# including Vector, Stack, LinkedList, ArrayList and CopyOnWriteArrayList.
Dictionary - represents a key/value pair collection that is thread-safe and unordered. It is used when you want to store and retrieve values from a key-value pair. Various dictionary classes are available in C# including TreeDict, HashMap and CountedDict.
Generic ICollectionT> - extends the IEnumerable interface and provides methods to insert, remove and search elements in a collection. This is useful when you want to use extension methods provided in IEnumerable such as Where.