【发布时间】:2021-01-07 15:59:06
【问题描述】:
为什么我得到这个超出范围的异常,我在框架 4.7 中使用了相同的逻辑并且从未遇到过这个问题。它现在在 4.8 上运行,是与此有关还是我在这里遗漏了什么。请有人给我解释一下。
pressureChart.AxisX.Add(new Axis
{
DisableAnimations = true,
LabelFormatter = value => new System.DateTime((long)value).ToString("mm:ss"), // Exception Here
Separator = new Separator
{
Step = TimeSpan.FromSeconds(10).Ticks
}
});
例外
System.ArgumentOutOfRangeException: 'Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks'
【问题讨论】:
-
value的值是多少?
标签: c# .net timespan livecharts