Lists
Creating List<T>, adding items (Add), count (Count), and printing with string.Join.
Simple enough for a 5-year-old to understand
Create and access a list
List<T> holds ordered values. The index starts at 0. Printing the list directly outputs the type name; you print the elements using string.Join.
using System;using System.Collections.Generic;var languages = new List<string> { "C#", "Go", "Rust" };Console.WriteLine(languages[0]);Console.WriteLine(languages.Count);Console.WriteLine(string.Join(", ", languages));