how to add element to a list in C# code example Example: how to add to a list c# var list = new List<string>(); list.Add("Hello");