I have a very curious thing happening in my application with HashTables.
First off: Yes, I know that HashTables are not supposed to be ordered in the way the were inserted, or any other way (but the hashes of the keys). That doesn't answer my question. I do not need it ordered, I just want to know WHY it differs between two seemingly identical systems.
So, here it is. Left side is IIS ordering, right side is Visual Studio.
Why is it different? Considering that .NET should (?) use the same algorithm to store, and retreive, data from a HashTable, the ordering should be the same on both sides, shouldn't it?
If, as I learned it, the key of a HashTable is hashed, then this hash should be the same on both systems, resulting in the same order of hashes (keys) and therefore the same order of data in the hashtable.
Where am I wrong? What difference is there in the HashTable implementation between IIS and VS?
A few extra notes from comments:
bin
folder to the IIS folder, so they are exactly the sameIn order for items in the table to have the same ordering several conditions must be met:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With