나는 System.Web.Configuration.CompilationSection에 대한 메타 데이터를보고하고 TimeSpan BatchTimeout
재산에 다음과 같은 특성을 발견했다 :이 허용 된 최대 값이 왜이유 10675199.02 : 48 : 05.4775807 CompilationSection의 TimeSpan 최대 값은?
[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); 그것들은 컴파일 할 때 사용할 수없는 유형의 인스턴스입니다. –