Tell me about Dictionary Object?

Answer Posted / sonali

A dictionary is actually just another collection of
Key/Value pairs, just like a HashTable, except that you
declare a type for the Key and Value.
An example of a simple Dictionary object would be something
like:

Dictionary<int, string> newDict = new Dictionary<int,string>();

When you get the key or value, you are given an actual
Object of a specific type. With a HashTable, the Key and
Value are just Objects, meaning they have no type and must
be converted to something in order to be more than just that.
With a dictionary, you can declare the Object types and get
back useful Objects or those types

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the function of attributes of the

tags?

623


What is .asp in html?

663


What is the difference between post and get method.

714


What is the purpose of application.lock method?

734


Explain how to refresh an asp page on a single click of a button?

629


Define microsoft intermediate language (msil)?

681


How do I open an asp file in excel?

716


What are the components of asp?

720


Where is the value-type variables allocated in the computer ram?

623


Explain the event handlers of session object?

742


What is the maximum size of an array?

719


What are server-side includes?

667


Is asp a language?

681


what is diff c#and vb.net what is .net framework 3.5 what is webservice with expmles

2346


What is asp format?

666