Posts

Showing posts with the label generics

C# Collections in four minutes - Collections & Collection Interfaces

Image
This article aims to give you an overview of collections that are available in C#. What is a Collection? A collection normally means a type whose purpose is to manage a group of other objects in memory and to provide access to those objects. Collection classes are specialized classes for data storage and retrieval. Collections typically include methods to add, remove, count and for, foreach for iterate through objects. ref -  https://docs.microsoft.com/en-us/dotnet/api/system.collections?view=netcore-3.1 Various Collections of C# There are two types of collections Arrays and Advanced Collections . Advanced Collections can be divided into two. Generic & Non-Generic collections. ➤ Non-Generic Collections The data type of the collection is not pre-defined. These collections are the various commonly used classes of the System.Collection namespace. ArrayList SortedList Stack Queue Hashtable BitArray I hope not to explain these data types further becau...