c# list of string code example Example 1: make a list c# IList<int> newList = new List<int>(){1,2,3,4}; Example 2: list c# list<string,string