我已經(jīng)閱讀了這篇文章,以回答這里的許多問題。但這到底是什么意思?var test = new Dictionary<int, string>();test.Add(0, "zero");test.Add(1, "one");test.Add(2, "two");test.Add(3, "three");Assert(test.ElementAt(2).Value == "two");上面的代碼似乎按預(yù)期工作。那么字典以什么方式被認(rèn)為是無序的呢?以上代碼在什么情況下可能會(huì)失敗?為什么字典是“無序的”?
為什么字典是“無序的”?
繁華開滿天機(jī)
2019-09-26 14:52:02