Gets or sets an object by its key.
Gets the object which is associated with a key.
If the key does not exist, null is returned.
Hashtable hashTable = new Hashtable();
hashTable.Add("0", "apples");
hashTable.Add("1", "bananas");
hashTable.Add("2", "pears");
string bananas = hashTable[1]; // returns "bananas"
string apples = hashTable["0"]; // returns "apples"
HashList Class | Sitecore.Collections Namespace | HashList.Item Overload List