在preserves插入顺序通用键/值对集合? [英] Generic Key/Value pair collection in that preserves insertion order?

查看:146
本文介绍了在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?

推荐答案

<一个href="http://msdn.microsoft.com/en-us/library/system.collections.specialized.ordereddictionary.aspx">System.Collections.Specialized.OrderedDictionary

这篇关于在preserves插入顺序通用键/值对集合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆