Click here to Skip to main content
15,887,421 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
for example:

C#
Dictionary<UInt16, string> dict = new Dictionary<ushort, string>();
Posted
Comments
Sergey Alexandrovich Kryukov 26-Apr-12 23:24pm    
Reason for my vote of 2
Invalid question: the dictionary in not "in C# language".

"What is" is also incorrect formulation of the question.
"It is a dictionary" -- is this correct answer sufficient or not? :-)

Failure to read MSDN help page on this generic class. If that article is not clear, OP could ask specific questions. Just lazy.

There is no an apparent way to answer. What is the essence of this question. What is unclear? How to read MSDN?

--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
 
Share this answer
 
v2
Comments
Uday P.Singh 27-Apr-12 14:24pm    
5!
Sergey Alexandrovich Kryukov 27-Apr-12 14:59pm    
Thank you, Uday.
--SA
And just in case if the OP is from C++ background, the nearest synonym of this in C++ is map<key,value>
 
Share this answer
 
Dictionary is typically a series of Key and Value Pairs stored in a manner that is easily searchable. The Key must be unique.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900