"Main.cs"

// No using statements here

var list = new StringList { "Hello", "I", "Am", "A", "List" }; // StringList instead of List<string>!
Console.WriteLine(list.Sum(str => str.Length)); // And we can use Linq!


Code snippet taken from "Two Decades of C#: A Reference - C# 10".