I have a property that returns a HashTable. I would like to sort it without refactoring my property. Please note: I do not want to return another type.
lubos is right: you can't sort a HashTable. If you could, it wouldn't be a HashTable. You can enumerate the HashTable, and then sort the enumeration. But that would be very slow. Much better to use a SortedDictionary instead.