常用方法
常用方法
常用方法
常用方法
private static Dictionary<DateTime, double> GetTemperatureByWeeks(IDictionary<DateTime, int> weatherDictionary) { return weatherDictionary.SumUpToWeeks().ToDictionary(kv => kv.Key, kv => ((double) kv.Value)/7); }