什么是C#语言中的字典? [英] What is Dictionary in C# Language?

查看:68
本文介绍了什么是C#语言中的字典?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如:



for example:

Dictionary<UInt16, string> dict = new Dictionary<ushort, string>();

推荐答案

下面的MSDN页面出了什么问题?

http://msdn.microsoft.com/en-us/library/xfhwa508.aspx [ ^ ]。



也许这里最重要的读物是这样的:

Microsoft Q209354



-SA
What's wrong with the MSDN page below?
http://msdn.microsoft.com/en-us/library/xfhwa508.aspx[^].

Perhaps most important reading required here is this:
Microsoft Q209354.

—SA

以防万一OP来自C ++背景,C ++中最接近的同义词是map< key,value>
And just in case if the OP is from C++ background, the nearest synonym of this in C++ is map<key,value>


Dictionary通常是一系列Key和Value以易于搜索的方式存储对。密钥必须是唯一的。
Dictionary is typically a series of Key and Value Pairs stored in a manner that is easily searchable. The Key must be unique.


这篇关于什么是C#语言中的字典?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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