Skip to main content
All lessons

Lists

8 min · C#

C#'s resizable lists — add, remove, and reach items by index.

C# · Lists0/5 cleared

Enemy 1 of 5

A List<T> holds many values in order. new List<string>() creates an empty one; .Add() appends to the end.

[index] reads a position (counting from 0).

You
Syntax Skeleton

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: apple