You are suggesting me to use the key list as array for iteration whereas there is no problem in iteration of the Dictionary.
for example:
is executed fine printing the highlighted section on output.
followed by the current price. So, for each iteration on Dictionary works fine, the only problem is update of values.
Please try to understand the problem, its not iteration it is update then iteration.
I tried with Dictionary (of String, String)
Still no luck
I’m suggesting you to use a copy of the key list as array for iteration. Your error is that ShareList.Keys is an interface over the very same object your modifying. As soon as the underlying object change, it is no longer valid.
The array produced won’t care if the dictionary has changed. Try to understand that.