Was hoping I could ask for advice.
I have two dictionaries
Dictionary<string, List<string>> dict = new Dictionary<string, List<string>>();
Dictionary<string, List<string>> dictFinal = new Dictionary<string, List<string>>();
In both cases the key values are the same but the both represent different lists of string values.
What I want is to have one dictionary with the same key values and with the lists of string values to be merged in one dictionary
I did start with a serious of loops but soon realised that this is perhaps not the best solution
foreach (var fin in dictFinal)
{
foreach (var valFin in fin.Value)
{
foreach (var kvp in dict)
{
foreach (var v in kvp.Value)
{
}
}
}
}
Is there a better way for bringing these two dictionaries 'together'?