C# 代码优化:使用 Linq 移除重复的时间段
var timePeriodList = main.PeriodList\n\t\t\t.GroupBy(p => new { p.StartTime, p.EndTime })\n\t\t\t.Select(g => new TimeSpanRange(g.Key.StartTime, g.Key.EndTime))\n\t\t\t.ToList();
原文地址: https://www.cveoy.top/t/topic/qdWP 著作权归作者所有。请勿转载和采集!