I'm creating the following List with a KeyValuePair which contains an object and another List:
var testList = new List<KeyValuePair<classTypeObject, List<DataTypeObject>>>
{
new KeyValuePair<classTypeObject, List<DataTypeObject>>(classTypeObject.Mountain, new List<DataTypeObject>()),
new KeyValuePair<classTypeObject, List<DataTypeObject>>(classTypeObject.City, new List<DataTypeObject>()),
};
How can I add items to the List for example to the second entry with the Key=classTypeObject.City?