DictionarymyDictionary = new Dictionary (); myDictionary.Add("apple", 10);
ListBoth of these examples use the built-in C# library. The Dictionary class is located in the System.Collections.Generic namespace and the List class is located in the System.Collections namespace.myList = new List (); myList.Add("apple");