Is SortedList (in C#) same as Hash table(in vb.net)?
thanks
sorry for posting second time.
Printable View
Is SortedList (in C#) same as Hash table(in vb.net)?
thanks
sorry for posting second time.
Both of these are common to all .NET languages.
As David says, they are both members of the System.Collections namespace. They behave similarly but if you enumerate a SortedList the items will be returned ordered by key. The Hashtable cares nothing for order. You can get the keys and then get the values that correspond to those keys but no representation is made about what order the keys will be returned in.