J
JezB
I have a hashtable (h) of class objects keyed by a string (k) - the class
(c) object stored in each hastable entry has two attributes (a1 and a2).
I want to iterate through the entries of the hashtable by ordering by one of
the attributes of the class (a1 or a2).
How can this easily be achieved ? I think I have to copy to an ArrayList
then write an IComparer - but I'm not sure if this is the best way.
Any advice appreciated.
(c) object stored in each hastable entry has two attributes (a1 and a2).
I want to iterate through the entries of the hashtable by ordering by one of
the attributes of the class (a1 or a2).
How can this easily be achieved ? I think I have to copy to an ArrayList
then write an IComparer - but I'm not sure if this is the best way.
Any advice appreciated.