var myList = new List<KeyValuePair<string, int>>(); // adding elements myList.Add(new KeyValuePair<string, int>("Laptop", 20)); myList.Add(new KeyValuePair<string, int>("Desktop", 40)); myList.Add(new KeyValuePair<string, int>("Tablet", 60));