[WEBINAR] Bulletproof: How Today's Business Leaders Stay on Top


Definition - What does Collection mean?

In programming, a collection is a class used to represent a set of similar data type items as a single unit. These unit classes are used for grouping and managing related objects.

A collection has an underlying data structure that is used for efficient data manipulation and storage. Code readability and maintenance improves when collections are used in logical constructs.

Techopedia explains Collection

Collections are designed to group certain objects with a logical connection. For example, a StudentCollection object may be used to maintain university student details. Details may include the total number of students or offer a student search facility based on attributes, such as name, class or grade.

Collections are used under the following conditions:

  • Each group element represents an object with a similar purpose.
  • Group size varies dynamically during runtime.
  • There must be access to an individual element through a search function based on a specific key.
  • There must be a sort or iteration through the group elements.

The .NET Framework provides a number of collection types, such as an array list, linked list, stack, queue or dictionary. Custom collections may be used when there is an implementation requirement for a special or new data structure. This may be done to host specific types, improve performance or modify by overriding existing collection class functionality. Using custom collections in the application architecture involves additional development resources.

Selecting the right type of collection is based on the usage pattern of a collection. Examples include dictionary collection, queue, stack, sorted dictionary and generics.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.