I don't know what you are trying to do. Are you trying to sort the keys
of the hashtable? If so, then this will be quite hard, unless all of the
keys are of one particular type. If they are, then you could use the Keys
property to get the keys. Once you have the ICollection interface
representing the keys, you can get an array of them by calling CopyTo.
Finally, you can pass that array to the static Sort method on the Array
class to sort it.
I hear it's not used much because people generally don't like it's
implementation (internally it's basically two arrays, one for the keys and
one for the values). But I've used it a couple of times on internal apps
with no problems.
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.