反编.net framwork 我们可以得到
[DefaultValue(100), SRCategory("CatBehavior"), SRDescription("TimerIntervalDescr")]
public int Interval
{
get
{
return this.interval;
}
set
{
lock (this.syncObj)
{
if (value < 1)
{
object[] args = new object[] { value, 0.ToString(CultureInfo.CurrentCulture) };
throw new ArgumentOutOfRangeException("Interval", SR.GetString("TimerInvalidInterval", args));
}
if (this.interval != value)
{
this.interval = value;
if ((this.Enabled && !base.DesignMode) && (this.timerWindow != null))
{
this.timerWindow.RestartTimer(value);
}
}
}
}
}
说明这是个int32 而且呢 小于1的时候会报错哦
继续察看int32
[Serializable, StructLayout(LayoutKind.Sequential), ComVisible(true)]
public struct Int32 : IComparable, IFormattable, IConvertible, IComparable<int>, IEquatable<int>
{
public const int MaxValue = 0x7fffffff;
}
说明 最大值 2147483647