Posts

Showing posts with the label #C# #Collections

C# Collections

Image
What is a Collection in C#? The  Collections in C#  are a set of predefined classes that are present in the  System.Collections  namespace that provides greater capabilities and functionalities than the traditional arrays. The collections in C# are reusable, more powerful, and more efficient and most importantly they have been designed and tested to ensure quality and performance. So in simple words, we can say a Collection in C# is a dynamic array .  That means the collections in C# have the capability of storing multiple values but with the following features. Size can be increased dynamically. We can insert an element into the middle of a collection. It also provides the facility to remove or delete elements from the middle of a collection. The collections in C# are classes that represent a group of objects. With the help of C# Collections, we can perform different types of operations on objects such as Store, Update, Delete, Retrieve, Search, and Sort object...