hi luisenike,
list:-
1)it accepts similar data type values at a time.(only single data type at a time either int or string or etc........
ex:- list < int >
//please observe this
{
List<int> list = new List<int>();
list.Add(2);
list.Add(3);
list.Add(7);
}
2)List type is ideal for linear collections not accessed by keys.
Dictionary:-
1) it accepts different data types at a time.
ex:- Dictionary < String,int >
//observe this
{
Dictionary<string, int> dictionary =
new Dictionary<string, int>();
dictionary.Add("naresh", 2);
dictionary.Add("luisenike", 1);
dictionary.Add("sagar", 0);
dictionary.Add("rajsekar", -1);
}
2) Dictionary is composed of separate keys and values.
regards:
nareshraju