Let’s say I have a dictionary that I want to store in the session. This dictionary will be storing a list of object with a date as the key.
Dictionary<DateTime, List<MyObjects>> SessionDictionaryMyObjects = new...
How do I put a list MyList in the dictionary with the key 31/1/2011 and how do I retrieve the list for 1/19/2011 from the dictionary?
Thanks.
Like this?
You also should sheck if the value exists in the dictionary with
ContainsKeymethod