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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top