I am using a ConcurrentDictionary to store log-lines, and when I need to display them to the user I call ToList()
to generate a list. But the weird thing is that some users receive the most recent lines first in the list, while they should logically be last.
Is this because ConcurrentDictionary doesnt guarantee a persistent order on the IEnumerate interface, or what can be the reason?
See Question&Answers more detail:os