在preserves插入顺序通用键/值对集合?
问题描述:
我在找东西像一个字典< K,V>然而,随着它preserves插入顺序的保证。由于词典是一个哈希表,我不认为它。
I'm looking for something like a Dictionary<K,V> however with a guarantee that it preserves insertion order. Since Dictionary is a hashtable, I do not think it does.
有一个泛型集合这一点,或者我需要使用旧的.NET 1.1的收藏品之一?
Is there a generic collection for this, or do I need to use one of the old .NET 1.1 collections?
答
System.Collections.Specialized.OrderedDictionary