1
Reply

What’s a HashTable ?

18y
7.3k
0
Reply

    HashTable is an object from System.Collections namespace. It allows to store/retrieve info as key-value pair.

    e.g.

    Hashtable ht = new Hashtable();

    ht.Add("key1", "Value1");

    System.Console.WriteLine(ht["key1"].ToString());

    ======= Printed result ===

    Value1