我查看了System.Web.Configuration.CompilationSection的元数据,并注意到
TimeSpan BatchTimeout
属性上有以下特性:[TimeSpanValidator(MinValueString = "00:00:00",
MaxValueString = "10675199.02:48:05.4775807")]
能否有人解释一下为什么这是允许的最大值?TimeSpan本身有一个上限,为什么还需要另一个值的验证,以及为什么是这个数字?
public static readonly TimeSpan Zero = new TimeSpan(0);
,public static readonly TimeSpan MaxValue = new TimeSpan(Int64.MaxValue);
。它们是类型的实例,在编译时不可用。 - Nelson Rothermel