So i have the exact same code (a couple of lines) in visual studio 2022, on anycpu. In one project i have "Prefer 32-bit".
This is the code:
System.Collections.Hashtable hashtable = new System.Collections.Hashtable();
hashtable.Add("cccccc", 1);
hashtable.Add("dddddd", 2);
So if i use a hashtable and look at its contents (or try to use the enumerator to parse its elements) i can see that they are in a different order.
I know that if i want to use an order i should use a List, or something else, but why is this happening ?
Why does using "Prefer 32-bit" change the order of the elements in the Hashtable ?