功能
查询起止日期范围内连续的月份列表。

/* Period */
cbxPeriod.DataSource = Enumerable.Range(0, 24).Select(t => DateTime.Today.AddMonths(-t)).Select(t => new KeyValuePair<string, string>(t.ToString("yyyy-MM"), t.ToString("yyyy-MM"))).ToList();
cbxPeriod.ValueMember = "Key";
cbxPeriod.DisplayMember = "Value";

[.Net] 一句话Linq(递归查询)

参考资料

https://stackoverflow.com/a/25081986

相关文章:

  • 2022-12-23
  • 2021-10-07
  • 2021-12-12
  • 2021-06-12
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-24
  • 2021-09-17
  • 2021-11-04
  • 2021-09-08
  • 2021-05-31
  • 2021-12-19
相关资源
相似解决方案