The First Dictionary
is like
Dictionary<String, String> ParentDict = new Dictionary<String, String>();
ParentDict.Add("A_1", "1");
ParentDict.Add("A_2", "2");
ParentDict.Add("B_1", "3");
ParentDict.Add("B_2", "4");
ParentDict.Add("C_1", "5");
i need to convert this into a new Dictionary<String, Dictionary<String,String>>
The result will contain
Key Value
Key Value
_________________________________________________
"A" "A_1" "1"
"A_2" "2"
"B" "B_1" "1"
"B_2" "2"
"C" "C_1" "1"
Now i'm using nested for loop
to do this.
How can i do this using LNQ
or LAMBDA Expression
?