I have tested in a multithreaded scenario, seems the key-value pairs added by TryAdd()
method is randomly ordered, even with adequate interval for the Adding action to complete. Sometime new item was added to the beginning, sometime at the end.
How can i make sure Tryadd()
adds items in calling order?