I need to fetch data from nested Dictionary IN C#. My Dictionary is like this:
static Dictionary&
A LINQ answer (that reads all the triples):
var qry = from outer in allOffset
from inner in outer.Value
select new {OuterKey = outer.Key,InnerKey = inner.Key,inner.Value};
or (to get the string directly):
var qry = from outer in allOffset
from inner in outer.Value
select outer.Key + "->>" + inner.Key + ", " + inner.Value;
foreach(string s in qry) { // show them
Console.WriteLine(s);
}