Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
What is dictionary in dotnet?
October 19, 2010
Explain about dictionary
Posted Date: October 19, 2010 Points: 5
Follow the link
Posted Date: October 20, 2010 Points: 5
Dictionaries map keys to values. For example, you might map an employee ID number to the object that represents the employee, or you might map a product ID to the object that represents the product. The .NET Framework includes the following dictionary classes:
1. Hashtable: A dictionary of name/value pairs that can be retrieved by name or index
2. SortedList: A dictionary that is sorted automatically by the key
3. StringDictionary: A hashtable with name/value pairs implemented as strongly typed strings
4.ListDictionary: A dictionary optimized for a small list of objects with fewer than 10 items
5. HybridDictionary: A dictionary that uses a ListDictionary for storage when the number of items is small and automatically switches to a Hashtable as the list grows
6. NameValueCollection: A dictionary of name/value pairs of strings that allows retrieval by name or index
Thanks and Regards,
Posted Date: October 23, 2010 Points: 5
The Dictionary type in the base class library is one of the most important ones you need to use for your C# programs. It is an implementation of a hashtable, which is an extremely efficient way to store keys for lookup. The Dictionary in .NET is well-designed, and this section shows lots of ways you can use it.
Dictionary Examples, Keys and Values
--- Program that uses Dictionary [C#] ---
static void Main()
// Use the dictionary.
Dictionary<string, int> dict = new Dictionary<string, int>();
--- Output of the program ---
To post reply
Related Questions Related Questions
I am New to DotNet. Guide me to start it from Begining
Why there is .Net is Coming in DOTNET?
Meaning and Role of CLR in DotNet
What is dllhell Problem in dotnet
What is intelliSense in Dotnet?
Preprocesses in DotNet
New DotNet Forums Anncounced
XML parsing in Dotnet
Embed Tag in Dotnet
Latest Forum Questions From The Same Category
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
How to read csv file which have many special character and tabs?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend