我知道List枚举器保证枚举顺序并尊重最后的排序操作,我知道那些Dictionary和HashSet那些不是,你不能确定
List
Dictionary
HashSet
Dictionary<string, string> dictionary = ...; foreach(var pair in dictionary) { }
将按照附加顺序处理对.
怎么样Stack和Queue?他们的调查员是否保证任何订单?
Stack
Queue
.net c#
.net ×1
c# ×1