ICollection<T>

An interface for a countable collection that can add, remove, and inspect items.

What is ICollection<T> in C#?

ICollection<T> — An interface for a countable collection that can add, remove, and inspect items.

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

Level: Freelancer · More C# terms at this level

Updated