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

Is classic asp still supported?

542


How do you administer security for my machine for an enterprise?

471


What is pdf aspx?

489


Define a variable in asp?

510


Define application-scope?

506






how can we done appllication deployment

1701


Explain the difference between sap r/2 and r/3?

507


Is asp a scripting language?

479


What is wsdl file? (explain in detail)

2184


What data types does the rangevalidator control support?

446


Define clientcertificate collection?

505


What is a form collection in asp?

533


What are the asp objects?

512


what is the need of a sealed class when we are having a structure

1851


Why asp is used?

490