hashtable sorting

  • Thread starter Thread starter Vidyanand Kulkarni
  • Start date Start date
V

Vidyanand Kulkarni

Hello everybody,

can anybody tell me how how he sorting on hashtable is done in c#

thanking in advance

with regards
vidyanand kulkarni
 
Vidyanand Kulkarni said:
can anybody tell me how how he sorting on hashtable is done in c#

Well, hashtables are inherently unsorted - they're maps rather than
lists, effectively.

If you could tell us exactly what your situation is and what you want
to do, that would help.
 
Hi Vidyanand,
Hastables are not sorted. Even more orders of the elements are not
guaranteed to be the same between adding the items.
There is SortedList class which is hashtable-like storage that is kept
sorted by the key values. For more information how it is implemented read
SortedList overview notes
 
Back
Top