What is the difference between Arraylist and Hashtable?

In C#, both ArrayList and Hashtable are collections, but they have different characteristics and purposes.

In Arraylist we can only add Items/ Values to the list.


 In Hashtable we can add Items/Values with the Keys.


 

Post a Comment

Previous Post Next Post