我如何将其更改为:Dictionary<string, Dictionary<DateTime, double>>
var data = segGroups.Join(pPeriods, s => s.segid, p => p.entid, (s, p) => new
{
Name = s.SegCode, // string
Time = p.StartLocal, // datetime
TR = p.Volume // double
})
.GroupBy(s => s.Name)
.ToList();
字符串将是Name
,内部字典将是DateTime
andTR
对。