Dictionary in C # – Part 1 of 2


chennas

For Part 2, click here.(Link will be updated shortly once the blog post is published, Enter your email address in the right section above quick links area, to follow my blog and receive notifications of new posts by email.)
In the part 1 of this post, let us discuss about Dictionary class in C#. There are lots of lots of content available explaining about this topic on the internet when you Google it, but this is my two cents of understanding on this topic.

A dictionary is a collection of <key, value=””> pairs. Dictionary class is present in System.Collections.Generic namespace. When a Dictionary is created, we need to specify the data type for Key and Value. It provides fast lookups for values using keys, last but not the least keys in the dictionary must be unique.

Let us try to understand this concept with this example. First let us create…

View original post 266 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s