List<T> (C#)

A List<T> is C#'s resizable array — an ordered collection of items of type T that can grow and shrink. You add items with .Add() and access them by…