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

i am creating an e-learning site, i want my customers to pay directly through paypall to my paypall account directly from my page ? is it possible ? is there any ready paypall script ?

1520


How to include active x controls in asp code?

505


i want question papers of ASP

1459


how can we delete cookies by coding part . so pls help me

1695


___________ and ____________ properity to be used to create localized version of a form

1510






Actually i downloaded Ajax news flash module but i am having issues enabling it on my site. need help.

1370


What is n-tier system?

532


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

506


what are web handlers?

1521


What is the default scripting language in asp?

517


What is the difference between jsp and asp?

510


Name the browsers that can access asp pages?

498


Explain the difference between asp and html? Or why asp is better than html?

576


How we load the page in ASP?

569


Why asp is used?

494