Collection

noun

say it: “kuh-LEK-shun” /kəˈlɛkʃən/

An object that holds a group of values together, such as a list or a dictionary.

What is Collection in C#?

Collection — An object that stores and organizes a group of values.

class TaskList
{
    ICollection<string> tasks = new List<string>();
}

In a sentence

  • “I kept the cart's items in a collection so I could add and remove them.”

Level: Freelancer · More C# terms at this level

Updated

In other subjects