Question : Dictionary list C#

Experts
Can a dictionary list be used for 2 or more values.
I know that dictionary list can be used for the
one key  and one value
But I need to use it for the one key and 3values .
Can anyone help me in this .
Is it possible?
Thanking you
Anindya

Answer : Dictionary list C#

The simplest solution is to create a class that contains the 3 values you want as properties. Then create an instance of the class, set those 3 values, then store that as the value in the dictionary.

i.e.
MyObject obj = new MyObject(value1, value2, value3);
then store obj in the dictionary list
Random Solutions  
 
programming4us programming4us