我的字典有问题。我正在使用这段代码:
Dictionary<string, string> testDictionary = new Dictionary<string, string>();
testDictionary.Add("1", "1");
testDictionary.Add("2", "2");
testDictionary.Add("3", "3");
testDictionary.Remove("2");
testDictionary.Add("4", "4");
我希望在此之后的字典(键和值)是 [1,3,4] 但它是 [1,4,3]。我怎样才能做到这一点?